Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
add MigrationBuilder type
Browse files Browse the repository at this point in the history
  • Loading branch information
TimurRin committed Jan 10, 2024
1 parent 0ca90a8 commit 04bca3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions migrate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ declare module "@cinnabar-forge/cf-migrations" {
date_migrated: number;
};
export type Query = { query: string; args: any[] };

export default function (_versionColumnName?: string): {
export type MigrationBuilder = {
resetContext: () => void;
getSqlDialect: () => string;
setSqlDialect: (value: string) => void;
Expand Down Expand Up @@ -49,4 +48,6 @@ declare module "@cinnabar-forge/cf-migrations" {
getMigrationRevisionSqlSelectQuery: () => string;
getMigrationsSqlQueries: (latestMigration: LastMigration) => Query[];
};

export default function (_versionColumnName?: string): MigrationBuilder;
}

0 comments on commit 04bca3b

Please sign in to comment.