@t1mmen/srtd
Version:
Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀
12 lines (11 loc) • 471 B
TypeScript
/**
* Error hints for common Postgres error codes
* Maps error codes to actionable suggestions for users
*/
/**
* Get an actionable hint for a Postgres error
* @param code - Postgres error code (e.g., '42P01')
* @param detail - Error detail message for pattern matching fallback
* @returns Actionable hint string, or undefined if no hint available
*/
export declare function getErrorHint(code: string | undefined, detail: string | undefined): string | undefined;