- Add portable byte and Unicode Base64 helpers backed by js-base64 - Replace manual binary-string, Buffer, and unsupported typed-array conversions - Cover binary, Unicode, URL-safe, malformed, and large inputs
36 lines
779 B
TypeScript
36 lines
779 B
TypeScript
export {}
|
|
|
|
declare global {
|
|
interface GestureEvent extends UIEvent {
|
|
scale: number
|
|
rotation: number
|
|
clientX: number
|
|
clientY: number
|
|
}
|
|
|
|
interface FilePickerAcceptType {
|
|
description: string
|
|
accept: Record<string, string[]>
|
|
}
|
|
|
|
interface FilePickerOptions {
|
|
types?: FilePickerAcceptType[]
|
|
suggestedName?: string
|
|
}
|
|
|
|
interface Window {
|
|
showOpenFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle[]>
|
|
showSaveFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle>
|
|
queryLocalFonts?(): Promise<
|
|
{
|
|
family: string
|
|
fullName: string
|
|
style: string
|
|
postscriptName: string
|
|
blob(): Promise<Blob>
|
|
}[]
|
|
>
|
|
mockWindowOpen?(url: string): void
|
|
}
|
|
}
|