Skip to content

Commit d8cc3ce

Browse files
committed
Create Typescript typings
1 parent 1aeef78 commit d8cc3ce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare module 'gatsby-plugin-intl' {
2+
import * as gatsby from 'gatsby';
3+
import React from 'react';
4+
5+
export * from 'react-intl';
6+
7+
export class Link<TState> extends gatsby.Link<TState> {}
8+
export const navigate: typeof gatsby.navigate;
9+
export const changeLocale: (language: string, to?: string) => void;
10+
export const IntlContextProvider: React.Provider;
11+
export const IntlContextConsumer: React.Consumer;
12+
}

0 commit comments

Comments
 (0)