Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eronana/tstoys
- Owner: Eronana
- Created: 2018-09-10T07:26:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T11:17:56.000Z (almost 5 years ago)
- Last Synced: 2024-10-20T14:28:36.888Z (18 days ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 16
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`