Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Increment<T extends number, Tuple extends any[] = [any]> =
- T extends 0 ? 1 :
- T extends 1 ? 2 :
- T extends TupleUnshift<any, Tuple> ?
- TupleUnshift<any, TupleUnshift<any, Tuple>>['length'] :
- Increment<TupleUnshift<any, TupleUnshift<any, Tuple>>>
Add Comment
Please, Sign In to add comment