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) • 743 B
import type { RenderContext, TemplateResult } from '../ui/types.js'; /** * Options for build/apply output. These are the only commands that use * the results table with summary. */ export interface BatchOutputOptions { results: TemplateResult[]; context: RenderContext & { command: 'build' | 'apply'; }; } /** * Output results in either JSON or human-readable format. * Branches based on context.json flag. * * - JSON: Uses writeJson() for clean output (no extra newlines) * - Human: Delegates to existing renderResultsTable * * Note: This function is specifically for build/apply commands. * Other commands use their own output mechanisms. */ export declare function output(options: BatchOutputOptions): void;