Skip to content

Commit 4ba02a1

Browse files
committed
fix(boolean): calling optional made it non-optional
fixes #1627
1 parent 7cf8446 commit 4ba02a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boolean.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class BooleanSchema<
9191
return super.defined(msg);
9292
}
9393
optional(): BooleanSchema<TType | undefined, TContext, TDefault, TFlags> {
94-
return super.defined();
94+
return super.optional();
9595
}
9696
required(
9797
msg?: Message,

0 commit comments

Comments
 (0)