24 lines
589 B
TypeScript
24 lines
589 B
TypeScript
import type { OpenPencilWindowAPI } from './app/browser-bridge'
|
|
|
|
export {}
|
|
|
|
declare global {
|
|
interface FilePickerAcceptType {
|
|
description: string
|
|
accept: Record<string, string[]>
|
|
}
|
|
|
|
interface FilePickerOptions {
|
|
multiple?: boolean
|
|
types?: FilePickerAcceptType[]
|
|
suggestedName?: string
|
|
}
|
|
|
|
interface Window {
|
|
openPencil?: OpenPencilWindowAPI
|
|
showOpenFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle[]>
|
|
showSaveFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle>
|
|
mockWindowOpen?(url: string): void
|
|
}
|
|
}
|