-
Notifications
You must be signed in to change notification settings - Fork 179
/
index.d.ts
21 lines (18 loc) · 685 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
declare module 'gatsby-plugin-intl' {
import * as gatsby from 'gatsby';
import React from 'react';
export * from 'react-intl';
export class Link<TState> extends gatsby.Link<TState> {}
export const navigate: typeof gatsby.navigate;
export const changeLocale: (language: string, to?: string) => void;
import { IntlShape } from "react-intl";
interface GatsbyPluginIntlShape extends IntlShape {
language: string;
languages: string[];
routed: boolean;
originalPath: string;
redirect: boolean;
}
export const IntlContextProvider: React.Provider<GatsbyPluginIntlShape>;
export const IntlContextConsumer: React.Consumer<GatsbyPluginIntlShape>;
}