firefish/src/@types/deepcopy.d.ts
Acid Chicken (硫酸鶏) 25473222cc
Follow lint
2019-03-26 21:52:58 +09:00

20 lines
393 B
TypeScript

declare module 'deepcopy' {
type DeepcopyCustomizerValueType = 'Object';
type DeepcopyCustomizer<T> = (
value: T,
valueType: DeepcopyCustomizerValueType) => T;
interface IDeepcopyOptions<T> {
customizer: DeepcopyCustomizer<T>;
}
function deepcopy<T>(
value: T,
options?: IDeepcopyOptions<T> | DeepcopyCustomizer<T>): T;
namespace deepcopy {} // Hack
export = deepcopy;
}