@jungvonmatt/contentful-typings
TypeScript icon, indicating that this package has built-in type declarations

1.14.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @jungvonmatt/contentful-typings

Weekly Downloads

3

Version

1.14.1

License

MIT

Unpacked Size

32.9 kB

Total Files

36

Last publish

Collaborators

  • jvm-tech
  • peter.klostermann
  • bezoerb
  • sebil