Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Any/Implements"

Index

Type aliases

Type aliases

Implements

Implements<A1, A2>: Implements<A1, A2>

Check whether A1 is part of A2 or not. It works like Extends but Boolean results are narrowed to False.

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`

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.