mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
chore: temporarily remove Table
type
This commit is contained in:
parent
be81d53bef
commit
76f8c76ea8
1 changed files with 0 additions and 23 deletions
|
@ -180,26 +180,3 @@ export type AstroId<T extends Pick<GeneratedConfig<'string'>, 'tableName'>> = SQ
|
|||
>;
|
||||
|
||||
export type MaybePromise<T> = T | Promise<T>;
|
||||
|
||||
export type Table<
|
||||
T extends DBFields,
|
||||
TTable extends Pick<GeneratedConfig<'string'>, 'tableName'>,
|
||||
> = {
|
||||
[K in keyof T]: T[K]['type'] extends 'boolean'
|
||||
? AstroBoolean<
|
||||
TTable & {
|
||||
name: K;
|
||||
hasDefault: T[K]['default'];
|
||||
notNull: !T[K]['optional'];
|
||||
}
|
||||
>
|
||||
: T[K]['type'] extends 'number'
|
||||
? AstroNumber<T[K]>
|
||||
: T[K]['type'] extends 'text'
|
||||
? AstroText<T[K]>
|
||||
: T[K]['type'] extends 'date'
|
||||
? AstroDate<T[K]>
|
||||
: T[K]['type'] extends 'json'
|
||||
? AstroJson<T[K]>
|
||||
: never;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue