diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-03-26 21:52:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-26 21:52:58 +0900 |
| commit | 25473222ccbfc658c10df898c61c4506b5289b7a (patch) | |
| tree | 088cf637fc64d5f755bd8bdc013a2815a8ab169a /src/@types | |
| parent | 10.98.2 (diff) | |
| download | sharkey-25473222ccbfc658c10df898c61c4506b5289b7a.tar.gz sharkey-25473222ccbfc658c10df898c61c4506b5289b7a.tar.bz2 sharkey-25473222ccbfc658c10df898c61c4506b5289b7a.zip | |
Follow lint
Diffstat (limited to 'src/@types')
| -rw-r--r-- | src/@types/deepcopy.d.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/@types/deepcopy.d.ts b/src/@types/deepcopy.d.ts index 3eb08d5772..f276b7e678 100644 --- a/src/@types/deepcopy.d.ts +++ b/src/@types/deepcopy.d.ts @@ -1,17 +1,19 @@ -declare module 'deepcopy'; - -declare namespace deepcopy { +declare module 'deepcopy' { type DeepcopyCustomizerValueType = 'Object'; type DeepcopyCustomizer<T> = ( value: T, valueType: DeepcopyCustomizerValueType) => T; - interface DeepcopyOptions<T> { + interface IDeepcopyOptions<T> { customizer: DeepcopyCustomizer<T>; } - export function deepcopy<T>( + function deepcopy<T>( value: T, - options?: DeepcopyOptions<T> | DeepcopyCustomizer<T>): T; + options?: IDeepcopyOptions<T> | DeepcopyCustomizer<T>): T; + + namespace deepcopy {} // Hack + + export = deepcopy; } |