Skip to content

Commit a65f08c

Browse files
authored
Merge pull request #204 from webdeveric/fix/jsonable
fix: key is optional
2 parents 42b658f + 53e6e1b commit a65f08c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/predicate/isJSONable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { JsonValue } from '../types/common.js';
22

3-
export const isJSONable = (input: unknown): input is { toJSON: (key: string) => JsonValue } => {
3+
export const isJSONable = (input: unknown): input is { toJSON: (key?: string) => JsonValue } => {
44
return (
55
input !== null &&
66
typeof input === 'object' &&

0 commit comments

Comments
 (0)