Skip to main content

6 docs tagged with "built-in"

View all tags

Awaited

If we have a type which is wrapped type like Promise. How we can get a type which is inside the wrapped type?

First of Array

Implement a generic First that takes an Array T and returns its first element's type.

Length of Tuple

For given a tuple, you need create a generic Length, pick the length of the tuple

Pick

Implement the built-in Pick generic without using it.

Readonly

Implement the built-in Readonly generic without using it.

Tuple to Object

Given an array, transform it into an object type and the key/value must be in the provided array.