nestjs-auto-reflect-metadata-emitter
Version:
[](https://github.com/Codibre/nestjs-auto-reflect-metadata-emitter/actions) [ • 399 B
TypeScript
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>;