We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc738b1 commit 515da32Copy full SHA for 515da32
1 file changed
packages/schema/src/schema.ts
@@ -59,10 +59,16 @@ export class Schema {
59
return new CustomType<T>({ test, ...options });
60
} else if (args.length === 2) {
61
const [, options] = args as [any, SelfCustomTypeOptions<T>];
62
- return new CustomType<T>(options);
+ return new CustomType<T>({
63
+ ...this.typeOptions,
64
+ ...options,
65
+ });
66
} else {
67
const [options] = args as [SelfCustomTypeOptions<T>];
68
69
70
71
72
}
73
74
0 commit comments