Skip to content

Eronana/tstoys

Repository files navigation

tstoys

some TypeScript toy codes

descriptions

  1. generics, partial fields & pick
  2. extends 1 add default fields. union string operations,
  3. another way to do 2
  4. use infer to implement FirstArgument and SecondArgument
  5. Diff and Filter for union string, Omit for object
  6. a comprehensive example: generic function
  7. another comprehensive example: generic class
  8. Intersection Types and Partial2

About

some TypeScript toy codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published