mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Add type definitions for event emitter
This commit is contained in:
parent
4db7872c02
commit
f0d4e5bfdb
7
resources/assets/src/shims.d.ts
vendored
7
resources/assets/src/shims.d.ts
vendored
@ -14,6 +14,13 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
interface Window {
|
||||
bsEmitter: {
|
||||
on(eventName: string, listener: Function): void
|
||||
emit(eventName: string, payload: object): void
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$t(key: string, parameters?: object): string
|
||||
|
Loading…
Reference in New Issue
Block a user