Index
Type aliases
Type aliases
Implements
Type parameters
- A1: any
- A2: any
returns
Boolean
example
type test0 = A.Implements<'a' | 'b', 'b'> // False
type test1 = A.Implements<'a', 'a' | 'b'> // True
type test2 = A.Implements<{a: string}, {a: any}> // True
type test3 = A.Implements<{a: any}, {a: any, b: any}> // False
type test4 = A.Implements<never, never> // False
/// Nothing cannot implement nothing, use `A.Equals`
Check whether
A1
is part ofA2
or not. It works likeExtends
butBoolean
results are narrowed toFalse
.