type
hero BETA
Explore
Tracks
Advent of TS
New
Explore
Tracks
Advent of TS
New
Theme
Login
Support Us
Login

    Easy

    Readonly

    EASY
    2
    45
    @typehero
    2 years ago

    Implement the built-in Readonly<T> generic without using it.

    Constructs a type with all proper

    Tuple to Object

    EASY
    5
    47

    First of Array

    EASY
    4
    38

    Length of Tuple

    EASY
    1
    29

    Exclude

    EASY
    4
    35

    Awaited

    EASY
    16
    59

    If

    EASY
    0
    12

    Concat

    EASY
    0
    17

    Includes

    EASY
    16
    35

    Push

    EASY
    2
    19

    Unshift

    EASY
    0
    10

    Parameters

    EASY
    0
    17

    The `Pick` builtin

    EASY
    1
    16
    @typehero
    2 years ago

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

    @typehero
    2 years ago

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

    For

    @typehero
    2 years ago

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

    For example:

    @typehero
    2 years ago

    Implement the built-in Exclude<T, U>

    Exclude from T those types that are assignable to U

    @typehero
    2 years ago

    If we have a type which is a wrapped type like Promise, how can we get the type which is inside th

    @typehero
    2 years ago

    Implement the util type If<C, T, F> which accepts condition C, a truthy value T, and a falsy

    @typehero
    2 years ago

    Implement the JavaScript Array.concat function in the type system. A type takes the two argument

    @typehero
    2 years ago

    Implement the JavaScript Array.includes function in the type system. A type takes the two argume

    @typehero
    2 years ago

    Implement the generic version of Array.push

    For example:

    type Result = Push<
    @typehero
    2 years ago

    Implement the type version of Array.unshift

    For example:

    type Result = Unshi
    @typehero
    2 years ago

    Implement the built-in Parameters generic without using it.

    For example:

    const foo = (a
    @dimitropoulos
    3 years ago

    TypeScript ships with a Pick type. Learn how to make it yourself!