cogsbox-shape 0.5.141 → 0.5.142
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
|
@@ -364,8 +364,8 @@ export type DeriveViewFromSchema<TSchema extends {
|
|
|
364
364
|
type NavigationProxy<CurrentTable extends string, Registry extends RegistryShape> = CurrentTable extends keyof Registry ? {
|
|
365
365
|
[K in keyof Registry[CurrentTable]["rawSchema"] as IsRelationField<Registry[CurrentTable]["rawSchema"][K]> extends true ? K : never]: GetRelationRegistryKey<Registry[CurrentTable]["rawSchema"][K], Registry> extends infer TargetKey ? TargetKey extends keyof Registry ? NavigationProxy<TargetKey & string, Registry> : never : never;
|
|
366
366
|
} : never;
|
|
367
|
-
type NavigationToSelection<
|
|
368
|
-
[K in keyof
|
|
367
|
+
type NavigationToSelection<T> = [keyof T] extends [never] ? never : {
|
|
368
|
+
[K in keyof T]?: boolean | NavigationToSelection<T[K]>;
|
|
369
369
|
};
|
|
370
370
|
export type OmitRelations<Shape, RawSchema> = Omit<Shape, {
|
|
371
371
|
[K in keyof Shape]: K extends keyof RawSchema ? RawSchema[K] extends {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cogsbox-shape",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.142",
|
|
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",
|