Skip to content

Commit 882645e

Browse files
authored
Fix TypeScript complaining about default import
Fixed a mistake in previous commit where I didn't notify TypeScript of the install function so it can be used in 'Vue.use'
1 parent 2eaa08d commit 882645e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {PluginFunction} from 'vue';
2+
13
export interface Announcer
24
{
35
data: Record<string, any>;
@@ -12,3 +14,10 @@ declare module 'vue/types/vue'
1214
$announcer: Announcer;
1315
}
1416
}
17+
18+
declare class VueAnnouncer
19+
{
20+
static install: PluginFunction<never>;
21+
}
22+
23+
export default VueAnnouncer;

0 commit comments

Comments
 (0)