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 3 additions and 3 deletions
Showing only changes of commit 8ca2805f4f - Show all commits

View File

@@ -2,7 +2,7 @@ import { Implements } from "@thilawyn/traitify-ts"
import { z } from "zod"
import { zodSchemaClass } from "./builders/ZodSchemaClassBuilder"
import { dejsonify, jsonify } from "./schema/jsonify"
import { ObservableZodSchemaObject } from "./traits/ObservableZodSchemaObject"
import { MobXObservableZodSchemaObject } from "./traits/MobXObservableZodSchemaObject"
const exp = zodSchemaClass
@@ -26,7 +26,7 @@ const exp = zodSchemaClass
id: dejsonify.bigint(s.shape.id)
}),
})
.expresses(ObservableZodSchemaObject)
.expresses(MobXObservableZodSchemaObject)
.build()
@exp.staticImplements

View File

@@ -4,7 +4,7 @@ import { makeObservable, observable } from "mobx"
import { z } from "zod"
export const ObservableZodSchemaObject = trait
export const MobXObservableZodSchemaObject = trait
.staticAbstract(Super => class extends Super {
declare readonly schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, object, object>
})