Function typeIsTrue

  • Check a type is true

    Useful with IsEqual, for a strict type check

    typeIsTrue<IsEqual<string, string>>()

    as alternative to

    expectType<TypeEqual<string, string>>(true)`

    Type Parameters

    • T extends true

    Returns void