mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 04:32:32 +02:00
refactor(starter): upgrade to new version of gatsby
This commit is contained in:
25
internal/gatsby/types/edge.ts
Normal file
25
internal/gatsby/types/edge.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Node as GatsbyNode } from "gatsby";
|
||||
|
||||
interface Frontmatter {
|
||||
slug?: string;
|
||||
template?: string;
|
||||
category?: string;
|
||||
tags?: Array<string>;
|
||||
}
|
||||
|
||||
interface Fields {
|
||||
slug?: string;
|
||||
categorySlug?: string;
|
||||
tagSlugs?: Array<string>;
|
||||
}
|
||||
|
||||
interface Node extends GatsbyNode {
|
||||
fields?: Fields;
|
||||
frontmatter?: Frontmatter;
|
||||
}
|
||||
|
||||
interface Edge {
|
||||
node: Node;
|
||||
}
|
||||
|
||||
export default Edge;
|
1
internal/gatsby/types/index.ts
Normal file
1
internal/gatsby/types/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type { default as Edge } from "./edge";
|
Reference in New Issue
Block a user