UNPKG

@t1mmen/srtd

Version:

Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀

23 lines (22 loc) • 863 B
import type { CLIConfig } from '../types.js'; import { type ValidationWarning } from './schemas.js'; /** * Result type for getConfig - includes config and any validation warnings */ export interface ConfigResult { config: CLIConfig; warnings: ValidationWarning[]; } /** * Get config for a specific directory. * Caches per directory to support multi-project scenarios. * Validates config with Zod schema, falling back to defaults on errors. * Returns both config and any validation warnings encountered. */ export declare function getConfig(dir?: string): Promise<ConfigResult>; /** * Clear the config cache (useful for testing) */ export declare function clearConfigCache(): void; export declare function saveConfig(baseDir: string, config: Partial<CLIConfig>): Promise<void>; export declare function resetConfig(baseDir: string): Promise<void>;