mirror of
https://github.com/bs-community/blessing-skin-plugins.git
synced 2025-01-07 03:06:43 +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
|
||||
}
|
||||
|
||||
// `var` is required here,
|
||||
// otherwise the `blessing` property won't appear in `globalThis` type
|
||||
declare var blessing: BlessingGlobals
|
||||
export {}
|
||||
|
||||
interface Window {
|
||||
blessing: BlessingGlobals
|
||||
declare global {
|
||||
// `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