6897 shaares
The infer
keyword only works within conditional types. It defines the type depending of another one.
Some use cases:
- extract type from promise
- extract function return type
- extract multiple candidates
The infer
keyword only works within conditional types. It defines the type depending of another one.
Some use cases: