brainy/src/global.d.ts

21 lines
431 B
TypeScript
Raw Normal View History

2025-06-24 11:41:30 -07:00
/**
* Global type declarations for Brainy
*/
// Extend the globalThis interface to include the __ENV__ property
declare global {
var __ENV__: {
isBrowser: boolean
isNode: string | false
isServerless: boolean
}
// Window interface extensions (worker-specific functions removed)
interface Window {
importTensorFlow?: () => Promise<any>
}
2025-06-24 11:41:30 -07:00
}
// This export is needed to make this file a module
export {}