Type alias IfEquals<T, U, Y, N>

IfEquals<T, U, Y, N>: (<G>() => G extends T
        ? 1
        : 0) extends (<G>() => G extends U
        ? 1
        : 0)
    ? Y
    : N

Type Parameters

  • T

    The first type to be compared with U.

  • U

    The seconde type to be compared with T.

  • Y = true

    A type to be returned if T & U are identical.

  • N = false

    A type to be returned if T & U are not identical.

Summary

Checks if two types are identical.

Generated using TypeDoc