Browse Source

fix(api): export WebviewWindowHandle type

Lucas Nogueira 4 năm trước cách đây
mục cha
commit
46ea873311
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 0 0
      core/tauri/scripts/bundle.js
  2. 2 1
      tooling/api/src/window.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
core/tauri/scripts/bundle.js


+ 2 - 1
tooling/api/src/window.ts

@@ -232,7 +232,7 @@ class WebviewWindowHandle {
  * ```
  */
 class WebviewWindow extends WebviewWindowHandle {
-  constructor(label: string, options: WindowOptions = {}) {
+  private constructor(label: string, options: WindowOptions = {}) {
     super(label)
     invokeTauriCommand({
       __tauriModule: 'Window',
@@ -737,6 +737,7 @@ async function availableMonitors(): Promise<Monitor[]> {
 
 export {
   WebviewWindow,
+  WebviewWindowHandle,
   getCurrent,
   getAll,
   appWindow,

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác