mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-20 16:31:10 +02:00
20 lines
393 B
TypeScript
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;
|
|
}
|