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