File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/gatsby/createSchemaCustomization Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { GatsbyNode } from 'gatsby' ;
2
+
1
3
import { getApiTypeDefs } from './apiSchema' ;
2
4
import { getAppTypeDefs } from './appSchema' ;
3
5
import { getPackageTypeDefs } from './packageSchema' ;
4
6
import { getPlatformTypeDefs } from './platformSchema' ;
5
7
6
8
// TODO(dcramer): move frontmatter out of ApiEndpoint and into Frontmatter
7
- function main ( { actions, schema} ) {
9
+ const createSchemaCustomization : GatsbyNode [ 'createSchemaCustomization' ] = ( {
10
+ actions,
11
+ schema,
12
+ } ) => {
8
13
const { createTypes} = actions ;
9
14
const typeDefs = [
10
15
`
@@ -124,6 +129,6 @@ function main({actions, schema}) {
124
129
...getPackageTypeDefs ( ) ,
125
130
...getAppTypeDefs ( ) ,
126
131
] ) ;
127
- }
132
+ } ;
128
133
129
- export default main ;
134
+ export default createSchemaCustomization ;
You can’t perform that action at this time.
0 commit comments