Skip to content

Commit 340971c

Browse files
Fix ts errors in strict mode
Generic type 'Provider' requires 1 type argument(s). Generic type 'Consumer' requires 1 type argument(s).
1 parent 12b9c1d commit 340971c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ declare module 'gatsby-plugin-intl' {
77
export class Link<TState> extends gatsby.Link<TState> {}
88
export const navigate: typeof gatsby.navigate;
99
export const changeLocale: (language: string, to?: string) => void;
10-
export const IntlContextProvider: React.Provider;
11-
export const IntlContextConsumer: React.Consumer;
12-
}
10+
export const IntlContextProvider: React.Provider<any>;
11+
export const IntlContextConsumer: React.Consumer<any>;
12+
}

0 commit comments

Comments
 (0)