mirror of
https://github.com/NoCrypt/migu.git
synced 2026-01-11 20:10:22 +00:00
53 lines
1.1 KiB
TypeScript
53 lines
1.1 KiB
TypeScript
import type { SvelteComponentTyped } from 'svelte'
|
|
|
|
export {}
|
|
|
|
type Track = {
|
|
selected: boolean
|
|
enabled: boolean
|
|
id: string
|
|
kind: string
|
|
label: string
|
|
language: string
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
IPC: any
|
|
port: MessagePort
|
|
version: {
|
|
platform: string
|
|
arch: string
|
|
}
|
|
}
|
|
interface EventTarget {
|
|
on: (type: string, callback: (any) => void, options?: boolean | {}) => void
|
|
once: (type: string, callback: (any) => void, options?: boolean | {}) => void
|
|
emit: (type: string, data?: any) => void
|
|
dispatch: (type: string, data?: any) => void
|
|
removeListener: (type: string, callback: (any) => void) => void
|
|
off: (type: string, callback: (any) => void) => void
|
|
}
|
|
interface HTMLMediaElement {
|
|
videoTracks: Track[]
|
|
audioTracks: Track[]
|
|
}
|
|
|
|
interface ScreenOrientation {
|
|
lock: Function
|
|
}
|
|
|
|
namespace svelteHTML {
|
|
interface HTMLAttributes {
|
|
'on:leavepictureinpicture'?: (
|
|
event: Event<{
|
|
target: EventTarget;
|
|
}>
|
|
) => void;
|
|
}
|
|
}
|
|
}
|
|
|
|
declare module '*.svelte' {
|
|
export default SvelteComponentTyped
|
|
}
|