UNPKG

flint-orm

Version:

Type-safe SQLite ORM for JavaScript

16 lines (15 loc) 630 B
import type { SchemaState, MigrationOperation } from './types'; export declare class CancellationError extends Error { constructor(message: string); } export declare function diffSchemas(previous: SchemaState, current: SchemaState): MigrationOperation[]; export declare function emptyState(): SchemaState; export type RenamePrompt = (message: string, options: { value: string; label: string; hint: string; }[]) => Promise<string | symbol>; export declare function resolveRenames(operations: MigrationOperation[], options?: { interactive?: boolean; prompt?: RenamePrompt; }): Promise<MigrationOperation[]>;