mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 20:48:52 +03:00
parent
e3f9916526
commit
dd52e738f1
4
.changes/api-ts-expect-error.md
Normal file
4
.changes/api-ts-expect-error.md
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
"api": patch
|
||||
---
|
||||
Fix `@ts-expect` error usage
|
File diff suppressed because one or more lines are too long
@ -195,8 +195,8 @@ enum UserAttentionType {
|
||||
* @return The current WebviewWindow.
|
||||
*/
|
||||
function getCurrent(): WebviewWindow {
|
||||
// @ts-expect-error
|
||||
return new WebviewWindow(window.__TAURI__.__currentWindow.label, {
|
||||
// @ts-expect-error
|
||||
skip: true
|
||||
})
|
||||
}
|
||||
@ -207,9 +207,12 @@ function getCurrent(): WebviewWindow {
|
||||
* @return The list of WebviewWindow.
|
||||
*/
|
||||
function getAll(): WebviewWindow[] {
|
||||
// @ts-expect-error
|
||||
return window.__TAURI__.__windows.map(
|
||||
(w) => new WebviewWindow(w, { skip: true })
|
||||
(w) =>
|
||||
new WebviewWindow(w.label, {
|
||||
// @ts-expect-error
|
||||
skip: true
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user