0
Fork 0
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:
Nate Moore 2024-01-24 17:11:12 -06:00
parent be81d53bef
commit 76f8c76ea8

View file

@ -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;
};