utility types
npm install typescript-type-utilsThis repo contains usefull typescript types, to be used across projects.
| types | description |
| ------------- |-------------|
| ExpectTrue | fails the build if "T" is not true |
| ExpectFalse | fails the build if "T" is not false |
| Equal | equal to true if "T1" is identical to "T2" |
| NotEqual | equal to true if "T1" is not identical to "T2" |
| VALID_ARGS | equal to true if "FUNC" can accept "ARGS_TUPPLE" |
example usage:
``ts`
type normalStrings = ExpectTrue<
EQUAL
>$3
utility types for manipulating tuple types
| types | description |
| ------------- |-------------|
| TupleToUnion | equal to a union of the items in the tuple |ReduceTupleOn
|