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

IfExtends: Actual extends Expected ? Yes : No

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

Type Parameters

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