Type Alias IfEquals<Actual, Expected, Yes, No>

IfEquals: IsEqual<Actual, Expected> extends true ? Yes : No

A helper type that resolves to the given Yes type parameter if Actual === Expected. Otherwise it resolves to the given No type parameter.

Type Parameters

  • Actual
  • Expected
  • Yes = unknown
  • No = never