Typescript Generics

for those who gave up on Generics

 

 

 

Confused by generics code like this?

 

function makePair<F extends number | string, S extends boolean | F>()

Typescript Generics for those who gave up on Generics

By hellomeghna

Typescript Generics for those who gave up on Generics

  • 175