1.14.1 • Published 25 days ago

@jungvonmatt/contentful-typings v1.14.1

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

NPM version

JvM Contentful typings generator

Generate typescript definitions based on your Contentful content models. It's mainly a wrapper around cf-content-types-generator

Getting started

Install

npm install --save-dev @jungvonmatt/contentful-typings

Commands

help

npx contentful-typings help [command]

generate

Fetch all content entries and store them as yaml in the configured directory

npx contentful-typings generate [options]

options

  -o, --output <filepath>  Specify output file (default: "@types/contentful.d.ts")
  -l, --localized          Add localized types
  -d, --jsdoc              Add JSDoc comments
  -g, --typeguard          Add type guards
  -h, --help               display help for command