0.1.2 #3

Merged
Thilawyn merged 136 commits from next into master 2024-03-11 19:44:21 +01:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit c652aae238 - Show all commits

View File

@@ -55,7 +55,7 @@ export class ZodSchemaClassExtender<
}
return new this.constructor(
this.superclass,
this.superclass as Super,
Schemas as unknown as AbstractClass<
Simplify<
@@ -165,7 +165,7 @@ export class ZodSchemaClassExtender<
}
return new this.constructor(
this.superclass,
this.superclass as Super,
JsonifiableSchemas as unknown as AbstractClass<
Simplify<

View File

@@ -3,6 +3,7 @@ import { z } from "zod"
import { zodSchemaClass } from "./builders/ZodSchemaClassBuilder"
import { dejsonify, jsonify } from "./schema/jsonify"
import { MobXObservableZodSchemaObject } from "./traits/MobXObservableZodSchemaObject"
import { StaticMembers } from "./util"
const exp = zodSchemaClass
@@ -47,7 +48,9 @@ const AdminUserProto = User.extend()
defaultValues: v => ({ ...v, name: "Admin" as const }),
})
.jsonifiable({
jsonifySchema: (s, json) => json.extend({
prout: s.shape.prout
})
})