@t1mmen/srtd
Version:
Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀
24 lines (23 loc) • 878 B
TypeScript
export interface ErrorItem {
template: string;
message: string;
hint?: string;
sqlSnippet?: string;
column?: number;
}
export interface ErrorDisplayOptions {
errors: ErrorItem[];
}
/**
* Renders the error display with SQL context and color coding.
*
* Format:
* ERRORS
* ─────────────────────────────────────────────────────
* X .../views/broken.sql
* | syntax error at line 5:
* | CREATE OR REPLACE FUNCTION broken_func(
* | ^ expected parameter
* ─────────────────────────────────────────────────────
*/
export declare function renderErrorDisplay(options: ErrorDisplayOptions): void;