amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

type-annotate-arguments-for-subset-of-type-in-typescript/ #13

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Type annotate arguments for subset of a given type in TypeScript – Amit Merchant – A blog on PHP, JavaScript and more

Often, there comes a scenario when you want to type annotate (or type hint) some of the variables or arguments for a subset of a given type.

https://www.amitmerchant.com/type-annotate-arguments-for-subset-of-type-in-typescript/