UNPKG

nestjs-auto-reflect-metadata-emitter

Version:

[![Actions Status](https://github.com/Codibre/nestjs-auto-reflect-metadata-emitter/workflows/build/badge.svg)](https://github.com/Codibre/nestjs-auto-reflect-metadata-emitter/actions) [![Actions Status](https://github.com/Codibre/nestjs-auto-reflect-metad

7 lines (6 loc) 399 B
import { ObjectKeyType, RecursiveOmit } from 'is-this-a-pigeon'; declare const noKey: unique symbol; type NoKey = typeof noKey; export { RecursiveOmit, ObjectKeyType }; export declare function removeUnknownProperties<T>(obj: T): T; export declare function removeUnknownProperties<T, K extends ObjectKeyType>(obj: T, prohibitedKeyList: Set<K>): RecursiveOmit<T, ObjectKeyType extends K ? NoKey : K>;