mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
deepmerge does not exist on window
> [ts] Property 'deepmerge' does not exist on type 'Window'. `deepmerge` is not found if it is being used within the browser
This commit is contained in:
parent
6a2ea9f633
commit
1bca60eeae
7
types/deepmerge/index.d.ts
vendored
7
types/deepmerge/index.d.ts
vendored
@ -18,3 +18,10 @@ declare namespace deepmerge {
|
||||
|
||||
function all<T>(objects: Array<Partial<T>>, options?: Options): T;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): T;
|
||||
deepmerge<T1, T2>(x: T1, y: T2, options?: deepmerge.Options): T1 & T2;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user