mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 14:16:43 -06:00
17 lines
373 B
TypeScript
17 lines
373 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;
|
|
}
|