types.ts — astro Source File
Architecture documentation for types.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 2eb38d79_bfe3_6938_fad4_521296dd8431["types.ts"] 97fa73a6_cf67_73a5_b60d_d52bfb00c7d8["./core/types.js"] 2eb38d79_bfe3_6938_fad4_521296dd8431 --> 97fa73a6_cf67_73a5_b60d_d52bfb00c7d8 5e5ea2f4_4ff1_f558_0bea_0b3ded79b0ac["drizzle-orm"] 2eb38d79_bfe3_6938_fad4_521296dd8431 --> 5e5ea2f4_4ff1_f558_0bea_0b3ded79b0ac fb1af543_c710_bc94_95c6_6f94e01b66dd["sqlite-core"] 2eb38d79_bfe3_6938_fad4_521296dd8431 --> fb1af543_c710_bc94_95c6_6f94e01b66dd style 2eb38d79_bfe3_6938_fad4_521296dd8431 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { ColumnBaseConfig, ColumnDataType } from 'drizzle-orm';
import type { SQLiteColumn, SQLiteTableWithColumns } from 'drizzle-orm/sqlite-core';
import type { ColumnsConfig, DBColumn, OutputColumnsConfig } from '../core/types.js';
type GeneratedConfig<T extends ColumnDataType = ColumnDataType> = Pick<
ColumnBaseConfig<T, string>,
'name' | 'tableName' | 'notNull' | 'hasDefault' | 'hasRuntimeDefault' | 'isPrimaryKey'
>;
type AstroText<
T extends GeneratedConfig<'string'>,
E extends readonly [string, ...string[]] | string,
> = SQLiteColumn<
T & {
data: E extends readonly (infer U)[] ? U : string;
dataType: 'string';
columnType: 'SQLiteText';
driverParam: string;
enumValues: E extends [string, ...string[]] ? E : never;
baseColumn: never;
isAutoincrement: boolean;
identity: undefined;
generated: undefined;
}
>;
type AstroDate<T extends GeneratedConfig<'custom'>> = SQLiteColumn<
T & {
data: Date;
dataType: 'custom';
columnType: 'SQLiteCustomColumn';
driverParam: string;
enumValues: never;
baseColumn: never;
isAutoincrement: boolean;
identity: undefined;
generated: undefined;
}
>;
type AstroBoolean<T extends GeneratedConfig<'boolean'>> = SQLiteColumn<
T & {
data: boolean;
dataType: 'boolean';
columnType: 'SQLiteBoolean';
driverParam: number;
enumValues: never;
baseColumn: never;
isAutoincrement: boolean;
identity: undefined;
generated: undefined;
}
>;
type AstroNumber<T extends GeneratedConfig<'number'>> = SQLiteColumn<
T & {
data: number;
dataType: 'number';
columnType: 'SQLiteInteger';
driverParam: number;
// ... (81 more lines)
Domain
Subdomains
Functions
Dependencies
- ./core/types.js
- drizzle-orm
- sqlite-core
Source
Frequently Asked Questions
What does types.ts do?
types.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RoutingSystem subdomain.
What functions are defined in types.ts?
types.ts defines 1 function(s): isSerializedSQL.
What does types.ts depend on?
types.ts imports 3 module(s): ./core/types.js, drizzle-orm, sqlite-core.
Where is types.ts in the architecture?
types.ts is located at packages/db/src/runtime/types.ts (domain: CoreAstro, subdomain: RoutingSystem, directory: packages/db/src/runtime).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free