diff --git a/index.d.ts b/index.d.ts index 7412fcf..31d98ec 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,7 @@ -declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T; -declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T1 & T2; +type PartialDeep = {[K in keyof T]?: PartialDeep}; + +declare function deepmerge(x: PartialDeep, y: PartialDeep, options?: deepmerge.Options): T; +declare function deepmerge(x: PartialDeep, y: PartialDeep, options?: deepmerge.Options): T1 & T2; declare namespace deepmerge { export interface Options {