2019-02-01 19:56:16 +09:00
|
|
|
declare module 'deepcopy';
|
|
|
|
|
|
|
|
declare namespace deepcopy {
|
|
|
|
type DeepcopyCustomizerValueType = 'Object';
|
|
|
|
|
|
|
|
type DeepcopyCustomizer<T> = (
|
|
|
|
value: T,
|
|
|
|
valueType: DeepcopyCustomizerValueType) => T;
|
|
|
|
|
|
|
|
interface DeepcopyOptions<T> {
|
2019-02-03 23:52:46 +09:00
|
|
|
customizer: DeepcopyCustomizer<T>;
|
2019-02-01 19:56:16 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deepcopy<T>(
|
|
|
|
value: T,
|
|
|
|
options?: DeepcopyOptions<T> | DeepcopyCustomizer<T>): T;
|
|
|
|
}
|