Skip to content

268 - If #8

@DEV4N4

Description

@DEV4N4
type If<C, T, F> = C extends true ? T : C extends boolean ? F : error; // my answer
type If<C extends boolean, T, F> = C extends true ? T : F; // best answer

Metadata

Metadata

Assignees

No one assigned

    Labels

    answerShare answers/solutions to a question

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions