mirror of
https://github.com/withastro/astro.git
synced 2025-03-17 23:11:29 -05:00
fix: primaryKey type check
This commit is contained in:
parent
d7e922cbfa
commit
6638f3af88
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ export type Table<
|
|||
name: K;
|
||||
hasDefault: TFields[K] extends { default: NonNullable<unknown> }
|
||||
? true
|
||||
: TFields[K] extends { primaryKey: true }
|
||||
: TFields[K]['schema'] extends { primaryKey: true }
|
||||
? true
|
||||
: false;
|
||||
notNull: TFields[K]['schema']['optional'] extends true ? false : true;
|
||||
|
|
Loading…
Add table
Reference in a new issue