@shopware-ag/storefront-types
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Types for Shopware Storefront

This package provides types for window-bound classes in Shopware 6 Storefront:

  • window.PluginManager
  • window.PluginBaseClass
  • window.router

and all regular imports of the Storefront.

Install this package with NPM:

npm install @shopware-ag/storefront-types --save-dev

To have the types active, you need to create a tsconfig.json (src/Resources/app/storefront/tsconfig.json) with the following content:

{
    "compilerOptions": {
        "types": ["@shopware-ag/storefront-types"]
    }
}

/@shopware-ag/storefront-types/

    Package Sidebar

    Install

    npm i @shopware-ag/storefront-types

    Weekly Downloads

    158

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    15.9 kB

    Total Files

    31

    Last publish

    Collaborators

    • bird87za
    • ffrank913
    • shyim
    • weltraumakustik
    • haberkamp
    • segge
    • patzick
    • schuchi
    • pweyck
    • jannisleifeld
    • tobiasberge