-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.d.ts
44 lines (38 loc) · 980 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { PluginOptions as GatsbyPluginOptions, Page as GatsbyPage } from 'gatsby';
export type Frontmatter = {
title?: string;
tags?: string[];
};
export type Translation = {
locale: string;
path: string;
};
export type SitePageContext = {
translations?: Translation[];
locale?: string;
localePagesId?: string;
prefix?: string;
};
export type UnstatefulSitePageContext = {
referTranslations?: any;
adjustPath?: any;
basePath?: string;
} & SitePageContext;
declare module 'gatsby' {
export interface Page extends GatsbyPage {
isCreatedByStatefulCreatePages?: boolean;
}
export interface PluginOptions extends GatsbyPluginOptions {
defaultLocale: string;
siteUrl: string;
locales: {
locale: string;
prefix: string;
slugs: Record<string, string>;
messages: Record<string, string>;
pageBlacklist?: string[];
}[];
pathBlacklist?: string[];
trailingSlash?: 'always' | 'never' | 'ignore';
}
}