We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6964768 commit 20828a6Copy full SHA for 20828a6
packages/shared/src/is.ts
@@ -28,7 +28,7 @@ export function isNumber (o: unknown): o is number {
28
}
29
30
export function isBooleanStringLiteral (o: unknown): o is string {
31
- return o === 'true' || o === 'false'
+ return o === 'true' || o === 'false' || o === '!0' || o === '!1'
32
33
34
export function isObjectStringLiteral (o: unknown): o is string {
0 commit comments