0.0.3 • Published 7 years ago

@monument-no/types-content-api v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Schema for the GQL API

This repo contains the typscript definitons for the api so that they can be included using npm in other repos that consume the api.

Development

You need the repo for the monument-no/gql-api in the same directory as this repo.

Generating types

This command will use the types found in ../gql-api/src/schema/definitions/*.graphql and use the library graphql-schema-typescript to generate a índex.d.ts in this repo.

npm run generate

Publishing

Publish package to npm org monument-no. You have to be invited to the org on npm to do so. Ask in slack if you need this.

npm publish --access public

Requiring

import { GQLArticle, GQLTrack } from '@monument-no/gql-api-types'