mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-04 03:37:27 +00:00
17 lines
374 B
TypeScript
17 lines
374 B
TypeScript
declare module 'deepcopy';
|
|
|
|
declare namespace deepcopy {
|
|
type DeepcopyCustomizerValueType = 'Object';
|
|
|
|
type DeepcopyCustomizer<T> = (
|
|
value: T,
|
|
valueType: DeepcopyCustomizerValueType) => T;
|
|
|
|
interface DeepcopyOptions<T> {
|
|
customizer: DeepcopyCustomizer<T>;
|
|
}
|
|
|
|
export function deepcopy<T>(
|
|
value: T,
|
|
options?: DeepcopyOptions<T> | DeepcopyCustomizer<T>): T;
|
|
}
|