Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Exact

Exact<A, W>: W extends unknown ? A extends W ? A extends Narrowable ? A : { [K in keyof A]: K extends keyof W ? Exact<A[K], W[K]> : never} : W : never

Force A to comply with W. A must be a shape of W. In other words, A must extend W and have the same properties - no more, no less.

Type parameters

  • A
  • W
  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.