ranui 0.1.10-alpha.18 → 0.1.10-alpha.19

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.zh-CN.md CHANGED
@@ -50,15 +50,17 @@ import 'ranui/style';
50
50
  如果遇到类型问题,可以选择手动导入类型文件
51
51
 
52
52
  ```ts
53
- import 'ranui/types';
54
- ```
55
-
56
- 或者
57
-
58
- ```ts
53
+ import 'ranui/typings';
54
+ // 或者
55
+ import 'ranui/dist/index.d.ts';
56
+ // 或者
57
+ import 'ranui/type';
58
+ // 或者
59
59
  import 'ranui/dist/typings';
60
60
  ```
61
61
 
62
+ 并不是都要,选一个能生效的就行
63
+
62
64
  也支持全量导入
63
65
 
64
66
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ranui",
3
- "version": "0.1.10-alpha.18",
3
+ "version": "0.1.10-alpha.19",
4
4
  "description": "UI Component library based on `Web Component`",
5
5
  "main": "dist/umd/index.umd.cjs",
6
6
  "module": "dist/index.js",
@@ -158,6 +158,11 @@
158
158
  "import": "./dist/index.js",
159
159
  "require": "./dist/index.js"
160
160
  },
161
+ "./typings": {
162
+ "types": "./dist/typings.d.ts",
163
+ "import": "./dist/typings.d.ts",
164
+ "require": "./dist/index.js"
165
+ },
161
166
  "./dist/*": {
162
167
  "types": "./dist/*",
163
168
  "import": "./dist/*",
package/readme.md CHANGED
@@ -51,9 +51,17 @@ import 'ranui/style';
51
51
  If there is a `type` problem, you can manually import the type
52
52
 
53
53
  ```ts
54
+ import 'ranui/typings';
55
+ // or
54
56
  import 'ranui/dist/index.d.ts';
57
+ // or
58
+ import 'ranui/type';
59
+ // or
60
+ import 'ranui/dist/typings';
55
61
  ```
56
62
 
63
+ Not all of them. Just pick one that works
64
+
57
65
  Support global import
58
66
 
59
67
  ```ts