mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-06 13:34:50 +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' {
|
declare module 'vue/types/vue' {
|
||||||
interface Vue {
|
interface Vue {
|
||||||
$t(key: string, parameters?: object): string
|
$t(key: string, parameters?: object): string
|
||||||
|
Loading…
Reference in New Issue
Block a user