@shopify/polaris-types 1.0.0 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/polaris.d.ts +998 -504
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @shopify/polaris-types
|
|
2
2
|
|
|
3
|
-
Type definitions for
|
|
3
|
+
Type definitions for [Polaris web components](https://shopify.dev/docs/api/app-home/polaris-web-components).
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ npm i -D @shopify/polaris-types
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
Since
|
|
15
|
+
Since Polaris web components are not imported directly, you need to add the types to your TypeScript configuration in one of the following ways:
|
|
16
16
|
|
|
17
17
|
### Method 1: Add to tsconfig.json
|
|
18
18
|
|