mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-02 10:47:28 +00:00
19 lines
393 B
TypeScript
19 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;
|
|
}
|