cspotcode / cspotcode/typescript-toolbelt

Add ItemType to extract item type of arrays or tuples

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
19
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Similar to ReturnType or ArgumentsType.

```
type StringOrNumber = ItemType<[string, number, string]>;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.