vue-tsc now runs as part of 'bun run check' — zero errors. Fixes by category: - TS18047 (73): null guards in LayoutSection, TypographySection - TS18048 (17): collab injection guards in CollabPanel, MobileHud - TS2339 (12): Uint8Array.fromBase64/toBase64 declarations (ES2024) - TS2741 (10): AppMenu discriminated union for separators - TS6133 (7): remove unused declarations - TS2322 (6): FontPicker AcceptableValue, Toolbar motion-v variants - TS2345 (3): FillSection updateArrayItem signature, ScrubInput guard - TS2314 (2): ChatMessage UIMessagePart generic args - Misc (5): PropertiesPanel dead comparison, VariablesDialog onSubmit, NodeContextMenuContent document access, LayerTree arg count
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
interface Uint8ArrayConstructor {
|
|
fromBase64(base64: string, options?: { alphabet?: 'base64' | 'base64url' }): Uint8Array
|
|
}
|
|
|
|
interface Uint8Array {
|
|
toBase64(options?: { alphabet?: 'base64' | 'base64url' }): string
|
|
}
|
|
|
|
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>
|
|
}[]
|
|
>
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
__OPEN_PENCIL_SET_TRANSPORT__?(factory: () => any): void
|
|
// Typed as `any` to avoid circular reference with EditorStore.
|
|
// The assignment in EditorView.vue is type-safe; test code uses `!` assertion.
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
__OPEN_PENCIL_STORE__?: any
|
|
}
|