@luolapeikko/ts-common
Preparing search index...
IfEquals
Type Alias IfEquals<X, Y, A, B>
IfEquals
:
<
T
>
()
=>
T
extends
X
?
1
:
2
extends
<
T
>
()
=>
T
extends
Y
?
1
:
2
?
A
:
B
Support for conditional types
Type Parameters
X
Object type
Y
Object type
A
=
X
Output object type or never
B
=
never
Output object type or never
Since
v0.1.2
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@luolapeikko/ts-common
Loading...
Support for conditional types