Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Object/SelectKeys"

Index

Type aliases

Type aliases

SelectKeys

SelectKeys<O, M, match>: { [K in Keys<O>]: { 1: K; 0: never; }[{ '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>]

Get the keys of O which fields match M

Type parameters

  • O: object

    to extract from

  • M: any

    to select fields

  • match: Match

    to change precision (?='default')

returns

keyof

example

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