This commit is contained in:
@@ -12,7 +12,7 @@ class Test extends ZodSchemaClass({
|
||||
}) {}
|
||||
|
||||
Test.defaultValues
|
||||
const inst = await Test.instantiatePromise({ id: 1n, name: "" })
|
||||
const inst = await Test.createPromise({ id: 1n, name: "" })
|
||||
|
||||
|
||||
class SubTest extends Test.extend({
|
||||
@@ -25,7 +25,7 @@ class SubTest extends Test.extend({
|
||||
}),
|
||||
}) {}
|
||||
|
||||
const subInst = await SubTest.instantiatePromise({ name: "", prout: "" })
|
||||
const subInst = await SubTest.createPromise({ name: "", prout: "" })
|
||||
|
||||
console.log(subInst)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user