This package provides types for window-bound classes in Shopware 6 Storefront:
window.PluginManagerwindow.PluginBaseClasswindow.router
and all regular imports of the Storefront.
Install this package with NPM:
npm install @shopware-ag/storefront-types --save-devTo 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"]
}
}