Skip to content

Latest commit

 

History

History
 
 

strapi-types

Strapi: Type Definitions

This package includes additional Strapi types, including plugins and entities.

Installation

  1. Install package
yarn add --dev "@bn-digital/strapi-types"
  1. 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/**"]
}