revenge-bundle-next/types.d.ts

37 lines
947 B
TypeScript
Raw Normal View History

2025-03-21 19:59:16 +07:00
// Type definitions for things in this codebase ONLY!
declare global {
const __BUILD_ENV__: 'development' | 'production'
const __BUILD_COMMIT__: string
2025-05-02 22:37:42 +07:00
const __BUILD_BRANCH__: string
const __BUILD_VERSION__: string
2025-03-21 19:59:16 +07:00
2025-05-05 19:13:05 +07:00
const __BUILD_FLAG_LOG_PROMISE_REJECTIONS__: boolean
// CommonJS modules, we don't want to depend on @types/node
const module: {
exports: any
}
export interface ImportMeta {
2025-06-03 16:24:58 +07:00
glob<T = any>(
pattern: ImportMetaGlobPattern,
options?: ImportMetaGlobOptions,
): Record<string, () => Promise<T>>
glob<T = any>(
pattern: ImportMetaGlobPattern,
options: Extract<ImportMetaGlobOptions, { eager: true }>,
): Record<string, T>
}
}
interface ImportMetaGlobOptions {
eager?: boolean
import?: string
query?: string | Record<string, string>
2025-03-21 19:59:16 +07:00
}
type ImportMetaGlobPattern = string | string[]
export {}