Overhaul validator packages #3172
Annotations
11 errors
|
Build
Module '"~/index"' has no exported member 'jsonSchema'.
|
Build
Argument of type 'BuildSchema<"insert", { 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";
|
Build
Argument of type 'BuildSchema<"select", { 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";
|
Build
Property 'bigint' does not exist on type 'ZodBigInt'.
|
Build
Argument of type 'BuildSchema<"select", { 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";
|
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; blobJson: { foo: string; }; blobBigInt: bigint; numeric: string; createdAt: Date; createdAtMs: Date; id?: number | undefined; tex
|
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>; }, undefined>' is not assignable to parameter of type 'ZodObject<{ id: ZodOptional<ZodNumber>; blobJson: any; blobBigInt: ZodBigInt; numeric: ZodString; createdAt: ZodDate; createdAtMs: ZodDate; boolean: ZodBoolean; real: ZodNumber; text: ZodOptional<ZodNullable<ZodString>>; role: ZodOptional<ZodEnum<["admin", "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" | undefined; }, { [x: string]: any; id?: number | undefined; blobJson?: any; blobBigInt?: bigint | undefined; numeric?: string
|
Build
No overload matches this call.
|
Loading