We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14655a commit 3a4bd9cCopy full SHA for 3a4bd9c
src/json-type/type/classes/OrType.ts
@@ -57,7 +57,7 @@ export class OrType<T extends Type[]> extends AbstractType<schema.OrSchema<{[K i
57
return options as any;
58
}
59
60
- public options(options: schema.Optional<schema.OrSchema> & Pick<schema.OrSchema, 'discriminator'>): this {
+ public options(options: schema.Optional<schema.OrSchema> & Partial<Pick<schema.OrSchema, 'discriminator'>>): this {
61
Object.assign(this.schema, options);
62
return this;
63
0 commit comments