Skip to content

Commit 0ea7a4a

Browse files
authored
Merge pull request #2 from ldawkes/typescript-definitions
Add index.d.ts with basic definitions
2 parents 39360c6 + 2eaa08d commit 0ea7a4a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export interface Announcer
2+
{
3+
data: Record<string, any>;
4+
5+
set(message: string): void;
6+
}
7+
8+
declare module 'vue/types/vue'
9+
{
10+
interface Vue
11+
{
12+
$announcer: Announcer;
13+
}
14+
}

0 commit comments

Comments
 (0)