Skip to content

Commit

Permalink
chore(gatsby): Convert built-in-types to typescript (#22391)
Browse files Browse the repository at this point in the history
  • Loading branch information
mottox2 committed Mar 19, 2020
1 parent 9a783f4 commit d4d347b
Showing 1 changed file with 2 additions and 6 deletions.
@@ -1,4 +1,4 @@
const { parse } = require(`graphql`)
import { parse, DocumentNode } from "graphql"

const fileType = `
type File implements Node @infer {
Expand Down Expand Up @@ -82,9 +82,5 @@ const sitePageType = `
}
`

const builtInTypeDefinitions = () =>
export const builtInTypeDefinitions = (): DocumentNode[] =>
[fileType, directoryType, sitePageType].map(type => parse(type))

module.exports = {
builtInTypeDefinitions,
}

0 comments on commit d4d347b

Please sign in to comment.