JSPM

  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q67173F
  • License MIT

Additional Strapi typescript definitions

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bn-digital/strapi-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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/**"]
    }