Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Object/FilterKeys"

Index

Type aliases

Type aliases

FilterKeys

FilterKeys<O, M, match>: { [K in Keys<O>]: { 1: never; 0: K; }[{ 'default': Extends<O[K], M>; 'implements->': Implements<O[K], M>; 'extends->': Extends<O[K], M>; '<-implements': Implements<M, O[K]>; '<-extends': Extends<M, O[K]>; 'equals': Equals<M, O[K]>; }[match]]; }[Keys<O>]

Filter out the keys of O which fields match M

Type parameters

  • O: object

    to remove from

  • M: any

    to select fields

  • match: Match

    to change precision (?='default')

returns

keyof

example

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