@@ -4,6 +4,9 @@ const slugify = require(`@sindresorhus/slugify`)
44const { compileMDXWithCustomOptions } = require ( `gatsby-plugin-mdx` )
55const { remarkHeadingsPlugin } = require ( `./remark-headings-plugin` )
66
7+ /**
8+ * @type {import('gatsby').GatsbyNode['onCreateNode'] }
9+ */
710exports . onCreateNode = ( { node, actions } ) => {
811 const { createNodeField } = actions
912 if ( node . internal . type === `Mdx` ) {
@@ -21,7 +24,10 @@ exports.onCreateNode = ({ node, actions }) => {
2124 }
2225}
2326
24- exports . createSchemaCustomization = async ( { getNode, getNodesByType, pathPrefix, reporter, cache, actions, schema } ) => {
27+ /**
28+ * @type {import('gatsby').GatsbyNode['createSchemaCustomization'] }
29+ */
30+ exports . createSchemaCustomization = async ( { getNode, getNodesByType, pathPrefix, reporter, cache, actions, schema, store } ) => {
2531 const { createTypes } = actions
2632
2733 const headingsResolver = schema . buildObjectType ( {
@@ -53,6 +59,7 @@ exports.createSchemaCustomization = async ({ getNode, getNodesByType, pathPrefix
5359 pathPrefix,
5460 reporter,
5561 cache,
62+ store,
5663 }
5764 )
5865
@@ -81,6 +88,9 @@ exports.createSchemaCustomization = async ({ getNode, getNodesByType, pathPrefix
8188 ] )
8289}
8390
91+ /**
92+ * @type {import('gatsby').GatsbyNode['createPages'] }
93+ */
8494exports . createPages = async ( { graphql, actions, reporter } ) => {
8595 const { createPage } = actions
8696
0 commit comments