瀏覽代碼

fix(api.js): `bundle` now exports `clipboard` mod, closes #2243 (#2244)

Amr Bashir 4 年之前
父節點
當前提交
4f88c3fb94
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 6 0
      .changes/api-clipboard-export.md
  2. 2 0
      tooling/api/src/bundle.ts

+ 6 - 0
.changes/api-clipboard-export.md

@@ -0,0 +1,6 @@
+---
+"api": patch
+---
+
+
+`bundle` now exports `clipboard` module so you can `import { clipboard } from "@tauri-apps/api"`.

+ 2 - 0
tooling/api/src/bundle.ts

@@ -7,6 +7,7 @@
 import 'regenerator-runtime/runtime'
 import * as app from './app'
 import * as cli from './cli'
+import * as clipboard from './clipboard'
 import * as dialog from './dialog'
 import * as event from './event'
 import * as fs from './fs'
@@ -24,6 +25,7 @@ const invoke = tauri.invoke
 export {
   app,
   cli,
+  clipboard,
   dialog,
   event,
   fs,