UNPKG

crystalline

Version:

A modern utility library with a strong emphasis on readability. Make your code crystal clear.

7 lines (6 loc) 258 B
declare const copy: <T extends object>(obj: T) => { deeply: () => T; discardKeys: (...keys: string[]) => Pick<T, Exclude<keyof T, string>>; keepKeys: (...keys: string[]) => Pick<T, Exclude<keyof T, Exclude<keyof T, string>>>; }; export { copy };