mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-30 06:23:46 +03:00
35 lines
730 B
TypeScript
35 lines
730 B
TypeScript
|
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
/** @ignore */
|
||
|
|
||
|
import type { invoke, transformCallback, convertFileSrc } from './primitives'
|
||
|
|
||
|
/** @ignore */
|
||
|
declare global {
|
||
|
interface Window {
|
||
|
__TAURI_INTERNALS__: {
|
||
|
invoke: typeof invoke
|
||
|
transformCallback: typeof transformCallback
|
||
|
convertFileSrc: typeof convertFileSrc
|
||
|
ipc: (message: any) => void
|
||
|
metadata: {
|
||
|
windows: WindowDef[]
|
||
|
currentWindow: WindowDef
|
||
|
}
|
||
|
plugins: {
|
||
|
path: {
|
||
|
sep: string
|
||
|
delimiter: string
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/** @ignore */
|
||
|
interface WindowDef {
|
||
|
label: string
|
||
|
}
|