@jungvonmatt/contentful-typings
v1.14.2
Published
[![NPM version][npm-image]][npm-url]
Downloads
333
Keywords
Readme
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