bolt.diy/app/types/global.d.ts
2025-03-13 07:09:36 -07:00

21 lines
437 B
TypeScript

interface Window {
showDirectoryPicker(): Promise<FileSystemDirectoryHandle>;
webkitSpeechRecognition: typeof SpeechRecognition;
SpeechRecognition: typeof SpeechRecognition;
}
interface Performance {
memory?: {
jsHeapSizeLimit: number;
totalJSHeapSize: number;
usedJSHeapSize: number;
};
}
// Add browser property to Process interface
declare namespace NodeJS {
interface Process {
browser?: boolean;
}
}