File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,15 @@ 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+
11+ import { IntlShape } from "react-intl" ;
12+ interface GatsbyPluginIntlShape extends IntlShape {
13+ language : string ;
14+ languages : string [ ] ;
15+ routed : boolean ;
16+ originalPath : string ;
17+ redirect : boolean ;
18+ }
19+ export const IntlContextProvider : React . Provider < GatsbyPluginIntlShape > ;
20+ export const IntlContextConsumer : React . Consumer < GatsbyPluginIntlShape > ;
21+ }
You can’t perform that action at this time.
0 commit comments