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
4
globals.d.ts
vendored
4
globals.d.ts
vendored
@ -35,6 +35,9 @@ declare class Toast {
|
||||
error(message: string): void
|
||||
}
|
||||
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
// `var` is required here,
|
||||
// otherwise the `blessing` property won't appear in `globalThis` type
|
||||
declare var blessing: BlessingGlobals
|
||||
@ -42,3 +45,4 @@ declare var blessing: BlessingGlobals
|
||||
interface Window {
|
||||
blessing: BlessingGlobals
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user