explicitly type prerequisites
This commit is contained in:
parent
a3183944d0
commit
70bd7be4a1
1 changed files with 10 additions and 0 deletions
|
@ -30,4 +30,14 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
|
|||
},
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
exports.createSchemaCustomization = ({ actions }) => {
|
||||
const { createTypes } = actions;
|
||||
const typeDefs = `
|
||||
type MarkdownRemarkFrontmatter implements Node {
|
||||
prerequisites: [[String]]
|
||||
}
|
||||
`;
|
||||
createTypes(typeDefs)
|
||||
};
|
Reference in a new issue