Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eronana/tstoys

some TypeScript toy codes
https://github.com/eronana/tstoys

Last synced: 10 days ago
JSON representation

some TypeScript toy codes

Awesome Lists containing this project

README

        

# 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`