Type definitions for [Polaris web components](https://shopify.dev/docs/api/app-home/polaris-web-components).
npm install @shopify/polaris-typesType definitions for Polaris web components.
Add the types package as a dev dependency:
``bash`
npm i -D @shopify/polaris-types
Since Polaris web components are not imported directly, you need to add the types to your TypeScript configuration in one of the following ways:
`json`
{
"compilerOptions": {
"types": ["@shopify/polaris-types"]
}
}
Add the following line at the top of your TypeScript files where you need the types:
`typescript``
///