UNPKG

1.16 kBTypeScriptView Raw
1export type GatsbyNodePluginArgs = {
2 files: GatsbyFile[];
3 markdownNode: MarkdownNode;
4 markdownAST: any;
5 reporter: {
6 info: (msg: string, error?: Error) => void;
7 };
8};
9export type GatsbyFile = {
10 absolutePath: string;
11};
12export type PluginOptions = {
13 staticFolderName: string;
14 include: string[];
15 exclude: string[];
16};
17export type FrontMatterOptions = {
18 staticFolderName: string;
19 include: string[];
20 exclude: string[];
21};
22export type MarkdownNode = {
23 id: string;
24 parent: string;
25 url: string;
26 frontmatter?: object;
27 internal: {
28 type: string;
29 };
30 fileAbsolutePath: string;
31};
32export type Node = {
33 dir: string;
34};
35export type HtmlNode = {
36 value: string;
37} & MarkdownNode;
38export declare const defaultPluginOptions: {
39 staticFolderName: string;
40 include: never[];
41 exclude: never[];
42};
43export declare const findMatchingFile: (src: string, files: GatsbyFile[], options: PluginOptions) => GatsbyFile;
44declare const _default: ({ files, markdownNode, markdownAST }: GatsbyNodePluginArgs, pluginOptions: PluginOptions) => Promise<void>;
45export default _default;