mirror of
https://github.com/bs-community/blessing-skin-plugins.git
synced 2025-01-08 11:37:27 +08:00
avoid global pollution
This commit is contained in:
parent
b86469df7f
commit
707d043a76
14
globals.d.ts
vendored
14
globals.d.ts
vendored
@ -35,10 +35,14 @@ declare class Toast {
|
|||||||
error(message: string): void
|
error(message: string): void
|
||||||
}
|
}
|
||||||
|
|
||||||
// `var` is required here,
|
export {}
|
||||||
// otherwise the `blessing` property won't appear in `globalThis` type
|
|
||||||
declare var blessing: BlessingGlobals
|
|
||||||
|
|
||||||
interface Window {
|
declare global {
|
||||||
blessing: BlessingGlobals
|
// `var` is required here,
|
||||||
|
// otherwise the `blessing` property won't appear in `globalThis` type
|
||||||
|
declare var blessing: BlessingGlobals
|
||||||
|
|
||||||
|
interface Window {
|
||||||
|
blessing: BlessingGlobals
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user