cogsbox-shape 0.5.97 → 0.5.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema.d.ts +2 -2
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -278,13 +278,13 @@ type Prettify<T> = {
|
|
|
278
278
|
[K in keyof T]: T[K];
|
|
279
279
|
} & {};
|
|
280
280
|
type DeriveSchemaByKey<T, Key extends "zodSqlSchema" | "zodClientSchema" | "zodValidationSchema", Depth extends any[] = []> = Depth["length"] extends 10 ? any : {
|
|
281
|
-
[K in keyof T as K extends "_tableName" | typeof SchemaWrapperBrand ? never : T[K] extends {
|
|
281
|
+
[K in keyof T as K extends "_tableName" | typeof SchemaWrapperBrand ? never : K extends keyof T ? T[K] extends {
|
|
282
282
|
config: {
|
|
283
283
|
sql: {
|
|
284
284
|
type: "hasMany" | "manyToMany" | "hasOne" | "belongsTo";
|
|
285
285
|
};
|
|
286
286
|
};
|
|
287
|
-
} ? Key extends "zodSqlSchema" ? never : K : K]: T[K] extends {
|
|
287
|
+
} ? Key extends "zodSqlSchema" ? never : K : K : never]: T[K] extends {
|
|
288
288
|
config: {
|
|
289
289
|
sql: {
|
|
290
290
|
type: "hasMany" | "manyToMany";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cogsbox-shape",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.98",
|
|
4
4
|
"description": "A TypeScript library for creating type-safe database schemas with Zod validation, SQL type definitions, and automatic client/server transformations. Unifies client, server, and database types through a single schema definition, with built-in support for relationships and serialization.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|