Browse Source

fix: Monitor if --isolatedModules is enabled (#1825)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Sporesirius 4 năm trước cách đây
mục cha
commit
9a662d2601
2 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 5 0
      .changes/api-export-type.md
  2. 4 1
      tooling/api/src/window.ts

+ 5 - 0
.changes/api-export-type.md

@@ -0,0 +1,5 @@
+---
+"api": patch
+---
+
+Use `export type` to export TS types.

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

@@ -741,7 +741,6 @@ export {
   getCurrent,
   getAll,
   appWindow,
-  Monitor,
   LogicalSize,
   PhysicalSize,
   LogicalPosition,
@@ -750,3 +749,7 @@ export {
   primaryMonitor,
   availableMonitors
 }
+
+export type {
+  Monitor
+}