Skip to content

Commit 3b7b597

Browse files
committed
cover Symbol for provide/inject typing
1 parent 906fa89 commit 3b7b597

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

flow/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ declare type ComponentOptions = {
5353
filters?: { [key: string]: Function };
5454

5555
// context
56-
provide?: Object | () => Object;
57-
inject?: { [key: string]: string } | Array<string>;
56+
provide?: { [key: string | Symbol]: any } | () => { [key: string | Symbol]: any };
57+
inject?: { [key: string]: string | Symbol } | Array<string>;
5858

5959
// component v-model customization
6060
model?: {

types/options.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface ComponentOptions<V extends Vue> {
4242
filters?: { [key: string]: Function };
4343

4444
provide?: Object | (() => Object);
45-
inject?: { [key: string]: string } | Array<string>;
45+
inject?: { [key: string]: string | symbol } | Array<string>;
4646

4747
model?: {
4848
prop?: string;

0 commit comments

Comments
 (0)