cogsbox-shape 0.5.83 → 0.5.84
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 +1 -2
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -152,8 +152,7 @@ export type EnrichFields<T extends ShapeSchema> = {
|
|
|
152
152
|
export declare const SchemaWrapperBrand: unique symbol;
|
|
153
153
|
export declare function schema<T extends ShapeSchema>(schema: T): EnrichFields<T> & {
|
|
154
154
|
_tableName: T["_tableName"];
|
|
155
|
-
|
|
156
|
-
};
|
|
155
|
+
} & Record<typeof SchemaWrapperBrand, true>;
|
|
157
156
|
export type RelationType = "hasMany" | "hasOne" | "manyToMany";
|
|
158
157
|
type BaseSchemaField<T extends SQLType = SQLType> = {
|
|
159
158
|
type: "field";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cogsbox-shape",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.84",
|
|
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",
|