Skip to content

Commit

Permalink
fix(boolean): calling optional made it non-optional
Browse files Browse the repository at this point in the history
fixes #1627
  • Loading branch information
jquense committed Apr 10, 2022
1 parent 7cf8446 commit 4ba02a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boolean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class BooleanSchema<
return super.defined(msg);
}
optional(): BooleanSchema<TType | undefined, TContext, TDefault, TFlags> {
return super.defined();
return super.optional();
}
required(
msg?: Message,
Expand Down

0 comments on commit 4ba02a1

Please sign in to comment.