mirror of
https://github.com/withastro/astro.git
synced 2025-02-10 22:38:53 -05:00
fix: correct hasDefault
inference
This commit is contained in:
parent
5fcf4a9bd6
commit
cbc2b99292
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export type Table<
|
|||
{
|
||||
tableName: TTableName;
|
||||
name: K;
|
||||
hasDefault: TFields[K]['default'] extends undefined ? false : true;
|
||||
hasDefault: TFields[K] extends { default: NonNullable<unknown> } ? true : false;
|
||||
notNull: TFields[K]['optional'] extends true ? false : true;
|
||||
}
|
||||
>;
|
||||
|
|
Loading…
Add table
Reference in a new issue