This package includes additional Strapi types, including plugins and entities.
- Install package
yarn add --dev "@bn-digital/strapi-types"
- Add package to
tsconfig.json
in Strapi working directory:
{
"extends": "@strapi/typescript-utils/tsconfigs/server",
"compilerOptions": {
"outDir": "dist",
"rootDir": ".",
"resolveJsonModule": true,
"types": ["@bn-digital/strapi-types"]
},
"include": ["./", "src/**/*.json"],
"exclude": ["node_modules/", "build/", "dist/", ".cache/", ".tmp/", "src/admin/", "**/*.test.ts", "src/plugins/**"]
}