@craftercms/models

Crafter CMS data model definitions

Usage no npm install needed!

<script type="module">
  import craftercmsModels from 'https://cdn.skypack.dev/@craftercms/models';
</script>

README

npm (scoped)

@craftercms/models

This package contains data model definitions of different structures of Crafter CMS. These interfaces are useful when developing in TypeScript and for IDE auto-completion & suggestions.

Usage

  • Install module using yarn or npm
    • yarn add @craftercms/models or
    • npm install @craftercms/models
  • Import and use the models you need

Most of our packages have @craftercms/models as a dependency and will pull it automatically when using npm.