UNPKG

gatsby-source-prismic

Version:

Gatsby source plugin for building websites using Prismic as a data source

12 lines (10 loc) 311 B
import * as gatsby from "gatsby"; /** * Returns the name of a GraphQL object type created by `graphql-compose`. * * @param type - GraphQL object type created by `graphql-compose`. * * @returns Name of the type. */ export const getTypeName = (type: gatsby.GatsbyGraphQLType): string => type.config.name;