mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-28 16:34:28 +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:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user