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.
- Install module using
yarn
ornpm
-
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.