@monument-no/types-content-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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'

Readme

Keywords

none

Package Sidebar

Install

npm i @monument-no/types-content-api

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

34.2 kB

Total Files

4

Last publish

Collaborators

  • gorillatron