Skip to content

Commit 5e5f558

Browse files
chore(typegen): fix, export and use GeneratorMetadata type
1 parent c08dec4 commit 5e5f558

File tree

2 files changed

+283
-298
lines changed

2 files changed

+283
-298
lines changed

src/lib/generators.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import PostgresMeta from "./PostgresMeta.js";
22
import { PostgresColumn, PostgresFunction, PostgresMaterializedView, PostgresRelationship, PostgresSchema, PostgresTable, PostgresType, PostgresView } from "./types.js";
33
import { PostgresMetaResult } from "./types.js";
44

5-
type GeneratorMetadata = {
5+
export type GeneratorMetadata = {
66
schemas: PostgresSchema[];
7-
tables: PostgresTable[];
8-
views: PostgresView[];
9-
materializedViews: PostgresMaterializedView[];
7+
tables: Omit<PostgresTable, 'columns'>[];
8+
views: Omit<PostgresView, 'columns'>[];
9+
materializedViews: Omit<PostgresMaterializedView, 'columns'>[];
1010
columns: PostgresColumn[];
1111
relationships: PostgresRelationship[];
1212
functions: PostgresFunction[];

0 commit comments

Comments
 (0)