We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42b658f + 53e6e1b commit a65f08cCopy full SHA for a65f08c
1 file changed
src/predicate/isJSONable.ts
@@ -1,6 +1,6 @@
1
import type { JsonValue } from '../types/common.js';
2
3
-export const isJSONable = (input: unknown): input is { toJSON: (key: string) => JsonValue } => {
+export const isJSONable = (input: unknown): input is { toJSON: (key?: string) => JsonValue } => {
4
return (
5
input !== null &&
6
typeof input === 'object' &&
0 commit comments