Support views in drizzle-zod
#218
Annotations
11 errors
|
Build
drizzle-zod#test:types: command (/home/runner/work/drizzle-orm/drizzle-orm/drizzle-zod) pnpm run test:types exited (2)
|
Build
'"~/index"' has no exported member named 'createInsertSchema'. Did you mean 'createSelectSchema'?
|
Build
Module '"~/index"' has no exported member 'jsonSchema'.
|
Build
Argument of type 'BuildSelectSchema<{ bigint: MySqlColumn<{ name: "bigint"; tableName: "test"; dataType: "bigint"; columnType: "MySqlBigInt64"; data: bigint; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; bigintNumber: MySqlColumn<{ name: "bigintNumber"; tableName: "test"; dataType: "number"; columnType: "MySqlBigInt53"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; binary: MySqlColumn<{ name: "binary"; tableName: "test"; dataType: "string"; columnType: "MySqlBinary"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; boolean: MySqlColumn<{ name: "boolean"; tableName: "test"; dataType: "boolean"; columnType: "MySqlBoolean"; data: boolean; driverParam: number | boolean; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; char: MySqlColumn<{ name: "char"; tableName: "test"; dataType: "string"; columnType: "MySqlChar"; data: string; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, object>; charEnum: MySqlColumn<{ name: "char"; tableName: "test"; dataType: "string"; columnType: "MySqlChar"; data: "a" | "b" | "c"; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "b", "c"]; baseColumn: never; generated: undefined; }, object>; customInt: MySqlColumn<{ name: "customInt"; tableName: "test"; dataType: "custom"; columnType: "MySqlCustomColumn"; data: number; driverParam: unknown; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; date: MySqlColumn<{ name: "date"; tableName: "test"; dataType: "date"; columnType: "MySqlDate"; data: Date; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; dateString: MySqlColumn<{ name: "dateString"; tableName: "test"; dataType: "string"; columnType: "MySqlDateString"; data: string; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; datetime: MySqlColumn<{ name: "datetime"; tableName: "test"; dataType: "date"; columnType: "MySqlDateTime"; data: Date; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; datetimeString: MySqlColumn<{ name: "datetimeString"; tableName: "test"; dataType: "string"; columnType: "MySqlDateTimeString"; data: string; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; decimal: MySqlColumn<{ name: "decimal"; tableName: "test"; dataType: "string"; columnType: "MySqlDecimal"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; double: MySqlColumn<{ name: "double"; tableName: "test"; data
|
Build
Expected 1 arguments, but got 2.
|
Build
Parameter 'schema' implicitly has an 'any' type.
|
Build
Argument of type 'BuildSelectSchema<ColumnsSelection>' is not assignable to parameter of type 'ZodObject<{ bigint: ZodBigInt; bigintNumber: ZodNumber; binary: ZodString; boolean: ZodBoolean; char: ZodString; charEnum: ZodEnum<["a", "b", "c"]>; customInt: ZodAny; date: ZodDate; dateString: ZodString; datetime: ZodDate; datetimeString: ZodString; decimal: ZodString; double: ZodNumber; enum: ZodEnum<["a", "b", "c"]>; float: ZodNumber; int: ZodNumber; json: any; mediumint: ZodNumber; real: ZodNumber; serial: ZodNumber; smallint: ZodNumber; text: ZodString; textEnum: ZodEnum<["a", "b", "c"]>; tinytext: ZodString; tinytextEnum: ZodEnum<["a", "b", "c"]>; mediumtext: ZodString; mediumtextEnum: ZodEnum<["a", "b", "c"]>; longtext: ZodString; longtextEnum: ZodEnum<["a", "b", "c"]>; time: ZodString; timestamp: ZodDate; timestampString: ZodString; tinyint: ZodNumber; varbinary: ZodString; varchar: ZodString; varcharEnum: ZodEnum<["a", "b", "c"]>; year: ZodNumber; autoIncrement: ZodNumber; }, UnknownKeysParam, ZodTypeAny, { [x: string]: any; bigint?: bigint | undefined; bigintNumber?: number | undefined; binary?: string | undefined; boolean?: boolean | undefined; char?: string | undefined; charEnum?: "a" | "b" | "c" | undefined; customInt?: any; date?: Date | undefined; dateString?: string | undefined; datetime?: Date | undefined; datetimeString?: string | undefined; decimal?: string | undefined; double?: number | undefined; enum?: "a" | "b" | "c" | undefined; float?: number | undefined; int?: number | undefined; json?: any; mediumint?: number | undefined; real?: number | undefined; serial?: number | undefined; smallint?: number | undefined; text?: string | undefined; textEnum?: "a" | "b" | "c" | undefined; tinytext?: string | undefined; tinytextEnum?: "a" | "b" | "c" | undefined; mediumtext?: string | undefined; mediumtextEnum?: "a" | "b" | "c" | undefined; longtext?: string | undefined; longtextEnum?: "a" | "b" | "c" | undefined; time?: string | undefined; timestamp?: Date | undefined; timestampString?: string | undefined; tinyint?: number | undefined; varbinary?: string | undefined; varchar?: string | undefined; varcharEnum?: "a" | "b" | "c" | undefined; year?: number | undefined; autoIncrement?: number | undefined; }, { [x: string]: any; bigint?: bigint | undefined; bigintNumber?: number | undefined; binary?: string | undefined; boolean?: boolean | undefined; char?: string | undefined; charEnum?: "a" | "b" | "c" | undefined; customInt?: any; date?: Date | undefined; dateString?: string | undefined; datetime?: Date | undefined; datetimeString?: string | undefined; decimal?: string | undefined; double?: number | undefined; enum?: "a" | "b" | "c" | undefined; float?: number | undefined; int?: number | undefined; json?: any; mediumint?: number | undefined; real?: number | undefined; serial?: number | undefined; smallint?: number | undefined; text?: string | undefined; textEnum?: "a" | "b" | "c" | undefined; tinytext?: string | undefined; tinytextEnum?: "a" | "b" | "c" | undefined; mediumtext?: string | undefined; mediumtextEnum?: "a" | "b" | "c" | undefined; longtext?: string | undefined; longtextEnum?: "a" | "b" | "c" | undefined; time?: string | undefined; timestamp?: Date | undefined; timestampString?: string | undefined; tinyint?: number | undefined; varbinary?: string | undefined; varchar?: string | undefined; varcharEnum?: "a" | "b" | "c" | undefined; year?: number | undefined; autoIncrement?: number | undefined; }>'.
|
Build
'"../src"' has no exported member named 'createInsertSchema'. Did you mean 'createSelectSchema'?
|
Build
Module '"../src"' has no exported member 'jsonSchema'.
|
Build
Binding element 'id' implicitly has an 'any' type.
|
Loading