Made ObservableZodSchemaObject into a subtrait
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-20 02:07:50 +01:00
parent ad197fe585
commit 021928da8c

View File

@@ -1,10 +1,14 @@
import { trait } from "@thilawyn/traitify-ts" import { expression } from "@thilawyn/traitify-ts"
import { InstantiableZodSchemaObject } from "./InstantiableZodSchemaObject"
export const ObservableZodSchemaObject = trait export const ObservableZodSchemaObject = expression
.implement(Super => class ObservableZodSchemaObject extends Super { .expresses(InstantiableZodSchemaObject)
constructor(...args: any[]) {
super(...args)
}
})
.build() .build()
.subtrait()
.implement(Super => class ObservableZodSchemaObject extends Super {
constructor(...args: any[]) {
super(...args)
}
})
.build()