Skip to content

Commit

Permalink
fix optional types
Browse files Browse the repository at this point in the history
  • Loading branch information
natew authored Jan 5, 2025
1 parent 7cff491 commit 658cd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ type ZeroMappedCustomType<

type ZeroColumnDefinition<T extends Table, K extends ColumnNames<T>> = Readonly<{
readonly optional: ColumnDefinition<T, K>["_"]["notNull"] extends true
? boolean // false
: boolean; // true;
? false
: true;
readonly type: ZeroMappedColumnType<T, K>;
readonly customType: ZeroMappedCustomType<T, K>;
} & (
Expand Down

0 comments on commit 658cd98

Please sign in to comment.