extendSchemable work
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-01-09 03:13:53 +01:00
parent 6fe782208d
commit 2d25c95a0a
2 changed files with 9 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class Test1 {
const Test2 = extendSchemable(
Test1,
schema => schema.extend({ prout: z.literal("ruquier"), ruquier: z.number() }),
defaultValues => ({ prout: "ruquier" as const }),
() => ({ prout: "ruquier" as const }),
)
Test2.defaultValues