diff --git a/.changes/api-type-definitions.md b/.changes/api-type-definitions.md new file mode 100644 index 000000000..1ce3b3872 --- /dev/null +++ b/.changes/api-type-definitions.md @@ -0,0 +1,5 @@ +--- +"@tauri-apps/api": patch:bug +--- + +Set the `exports > types` package.json field. diff --git a/tooling/api/package.json b/tooling/api/package.json index 99148b1f8..00bee29b7 100644 --- a/tooling/api/package.json +++ b/tooling/api/package.json @@ -21,14 +21,17 @@ "type": "module", "main": "./index.cjs", "module": "./index.js", + "types": "./index.d.ts", "exports": { ".": { "import": "./index.js", - "require": "./index.cjs" + "require": "./index.cjs", + "types": "./index.d.ts" }, "./*": { "import": "./*.js", - "require": "./*.cjs" + "require": "./*.cjs", + "types": "./*.d.ts" }, "./package.json": "./package.json" },