Skip to content

Commit

Permalink
fix: add missing types for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aldis-ameriks committed May 10, 2022
1 parent ee04c69 commit 662d957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface Options {
ssl?: boolean;
insertTypes?: boolean;
tableNames?: boolean;
comments?: boolean;
}

declare function generate(option: Options): Promise<string>;
Expand Down
3 changes: 2 additions & 1 deletion test/types/pg-typegen.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const options = {
suffix: 'foo',
type: false,
insertTypes: true,
tableNames: true
tableNames: true,
comments: true
}

expectAssignable<Options>(options)
Expand Down

0 comments on commit 662d957

Please sign in to comment.