Skip to content

Commit 515da32

Browse files
committed
fix(schema): use title
1 parent dc738b1 commit 515da32

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

packages/schema/src/schema.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,16 @@ export class Schema {
5959
return new CustomType<T>({ test, ...options });
6060
} else if (args.length === 2) {
6161
const [, options] = args as [any, SelfCustomTypeOptions<T>];
62-
return new CustomType<T>(options);
62+
return new CustomType<T>({
63+
...this.typeOptions,
64+
...options,
65+
});
6366
} else {
6467
const [options] = args as [SelfCustomTypeOptions<T>];
65-
return new CustomType<T>(options);
68+
return new CustomType<T>({
69+
...this.typeOptions,
70+
...options,
71+
});
6672
}
6773
}
6874
}

0 commit comments

Comments
 (0)