@beardeddudes/strapi-types
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Strapi Type Definitions

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

How to use it

To use this Stripe types in your project, you can install it via npm or yarn:

# Using npm
npm install --save-dev @beardeddudes/strapi-types

# Using yarn
yarn add --dev @beardeddudes/strapi-types

Or add to your package.json:

{
  "devDependencies": {
    "@beardeddudes/strapi-types": "<version>"
  }
}

After, check that file tsconfig.json exists in project root with similar content in Strapi working directory:

{
  "compilerOptions": {
    "outDir": "dist",
    "rootDir": ".",
    "resolveJsonModule": true,
    "types": [
      "@beardeddudes/strapi-types"
    ]
  },
  "exclude": [
    "**/*.test.ts",
    ".cache/",
    "build/",
    "node_modules/",
    "src/admin/",
    "src/plugins/**"
  ],
  "extends": "@strapi/typescript-utils/tsconfigs/server",
  "include": [
    "./",
    "src/**/*.json"
  ]
}

This configuration provides a set of common Strapi types that align with Bearded Dudes preferences.

That's all and have a good coding.

Best wishes,
Bearded Dudes team!

Readme

Keywords

Package Sidebar

Install

npm i @beardeddudes/strapi-types

Weekly Downloads

4

Version

0.1.0

License

MIT

Unpacked Size

11 kB

Total Files

14

Last publish

Collaborators

  • beardeddudes