Add MySql tests to drizzle-zod #244
Annotations
10 errors
Build
Module '"../src"' has no exported member 'jsonSchema'.
|
Build
Property 'id' does not exist on type 'ZodNumber'.
|
Build
Argument of type 'BuildSchema<"insert", { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "number"; columnType: "SQLiteInteger"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; blobJson: SQLiteColumn<{ name: "blob"; tableName: "users"; dataType: "json"; columnType: "SQLiteBlobJson"; data: { foo: string; }; driverParam: Buffer; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; blobBigInt: SQLiteColumn<{ name: "blob"; tableName: "users"; dataType: "bigint"; columnType: "SQLiteBigInt"; data: bigint; driverParam: Buffer; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; numeric: SQLiteColumn<{ name: "numeric"; tableName: "users"; dataType: "string"; columnType: "SQLiteNumeric"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; createdAt: SQLiteColumn<{ name: "created_at"; tableName: "users"; dataType: "date"; columnType: "SQLiteTimestamp"; data: Date; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; createdAtMs: SQLiteColumn<{ name: "created_at_ms"; tableName: "users"; dataType: "date"; columnType: "SQLiteTimestamp"; data: Date; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; boolean: SQLiteColumn<{ name: "boolean"; tableName: "users"; dataType: "boolean"; columnType: "SQLiteBoolean"; data: boolean; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; real: SQLiteColumn<{ name: "real"; tableName: "users"; dataType: "number"; columnType: "SQLiteReal"; data: number; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; text: SQLiteColumn<{ name: "text"; tableName: "users"; dataType: "string"; columnType: "SQLiteText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, object>; role: SQLiteColumn<{ name: "role"; tableName: "users"; dataType: "string"; columnType: "SQLiteText"; data: "admin" | "user"; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["admin", "user"]; baseColumn: never; generated: undefined; }, object>; }, { id: ({ id }: ZodNumber) => any; blobJson: ZodObject<{ foo: ZodString; }, "strip", ZodTypeAny, { foo: string; }, { foo: string; }>; role: ZodEnum<["admin", "manager", "user"]>; }>' is not assignable to parameter of type 'ZodObject<{ id: ZodOptional<ZodNumber>; blobJson: ZodObject<{ foo: ZodString; }, "strip", ZodTypeAny, { foo: string; }, { foo: string; }>; blobBigInt: ZodBigInt; numeric: ZodString; createdAt: ZodDate; createdAtMs: ZodDate; boolean: ZodBoolean; real: ZodNumber; text: ZodOptional<ZodNullable<ZodString>>; role: ZodOptional<ZodEnum<["admin", "manager", "user"]>>; }, UnknownKeysParam, ZodTypeAny, { boolean: boolean; real: number; numeric: string; blobJson: { foo: string; }; blobBigInt: bigint; createdAt: Date; createdAtMs: Date; id?: number | undefined; tex
|
Build
No overload matches this call.
|
Build
Unused '@ts-expect-error' directive.
|
Build
No overload matches this call.
|
Build
Unused '@ts-expect-error' directive.
|
Build
Argument of type 'BuildSchema<"select", { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "number"; columnType: "SQLiteInteger"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; blobJson: SQLiteColumn<{ name: "blob"; tableName: "users"; dataType: "json"; columnType: "SQLiteBlobJson"; data: { foo: string; }; driverParam: Buffer; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; blobBigInt: SQLiteColumn<{ name: "blob"; tableName: "users"; dataType: "bigint"; columnType: "SQLiteBigInt"; data: bigint; driverParam: Buffer; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; numeric: SQLiteColumn<{ name: "numeric"; tableName: "users"; dataType: "string"; columnType: "SQLiteNumeric"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; createdAt: SQLiteColumn<{ name: "created_at"; tableName: "users"; dataType: "date"; columnType: "SQLiteTimestamp"; data: Date; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; createdAtMs: SQLiteColumn<{ name: "created_at_ms"; tableName: "users"; dataType: "date"; columnType: "SQLiteTimestamp"; data: Date; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; boolean: SQLiteColumn<{ name: "boolean"; tableName: "users"; dataType: "boolean"; columnType: "SQLiteBoolean"; data: boolean; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; real: SQLiteColumn<{ name: "real"; tableName: "users"; dataType: "number"; columnType: "SQLiteReal"; data: number; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, object>; text: SQLiteColumn<{ name: "text"; tableName: "users"; dataType: "string"; columnType: "SQLiteText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, object>; role: SQLiteColumn<{ name: "role"; tableName: "users"; dataType: "string"; columnType: "SQLiteText"; data: "admin" | "user"; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["admin", "user"]; baseColumn: never; generated: undefined; }, object>; }, { blobJson: any; role: ZodEnum<["admin", "manager", "user"]>; }>' is not assignable to parameter of type 'ZodObject<{ id: ZodNumber; blobJson: any; blobBigInt: ZodBigInt; numeric: ZodString; createdAt: ZodDate; createdAtMs: ZodDate; boolean: ZodBoolean; real: ZodNumber; text: ZodNullable<ZodString>; role: ZodEnum<["admin", "manager", "user"]>; }, UnknownKeysParam, ZodTypeAny, { [x: string]: any; id?: number | undefined; blobJson?: any; blobBigInt?: bigint | undefined; numeric?: string | undefined; createdAt?: Date | undefined; createdAtMs?: Date | undefined; boolean?: boolean | undefined; real?: number | undefined; text?: string | null | undefined; role?: "admin" | "user" | "manager" | undefined; }, { [x: string]: any; id?: number | undefined; blobJson?: any; blobBigInt?
|
Build
drizzle-zod#test:types: command (/home/runner/work/drizzle-orm/drizzle-orm/drizzle-zod) pnpm run test:types exited (2)
|
Build
Process completed with exit code 2.
|
Loading