Working extendable
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Julien Valverdé
2024-02-08 18:26:37 +01:00
parent 041b3f566e
commit 5f7fd30459
4 changed files with 55 additions and 11 deletions

View File

@@ -26,17 +26,17 @@ const inst = Test.create({ id: 1n, name: "" })
console.log(inst)
// class SubTest extends Test.extend({
// schema: ({ schema }) => schema.extend({
// prout: z.string()
// }),
class SubTest extends Test.extend({
schema: ({ schema }) => schema.extend({
prout: z.string()
}),
// defaultValues: defaultValues => defineDefaultValues({
// ...defaultValues
// }),
// }) {}
defaultValues: defaultValues => ({
...defaultValues
}),
}) {}
// const subInst = await SubTest.createPromise({ name: "", prout: "" })
const subInst = await SubTest.createPromise({ name: "", prout: "" })
// console.log(subInst)