Conditional subtypes using as clause
Problem Statement
While working on a project. I came across a use case where I need to create a type that needs to be a subtype of a given type including only a particular key.
const type Address = {
Id: string,
name: string,
surname: string,
country...
async-await.hashnode.dev3 min read