We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa332c commit be7eab2Copy full SHA for be7eab2
.changes/api-type-definitions.md
@@ -0,0 +1,5 @@
1
+---
2
+"@tauri-apps/api": patch:bug
3
4
+
5
+Set the `exports > types` package.json field.
tooling/api/package.json
@@ -21,14 +21,17 @@
21
"type": "module",
22
"main": "./index.cjs",
23
"module": "./index.js",
24
+ "types": "./index.d.ts",
25
"exports": {
26
".": {
27
"import": "./index.js",
- "require": "./index.cjs"
28
+ "require": "./index.cjs",
29
+ "types": "./index.d.ts"
30
},
31
"./*": {
32
"import": "./*.js",
- "require": "./*.cjs"
33
+ "require": "./*.cjs",
34
+ "types": "./*.d.ts"
35
36
"./package.json": "./package.json"
37
0 commit comments