Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 27, 2024
1 parent 941ed31 commit 621a830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export type Change<ReasonValue extends Reason = Reason> = {
*/
error: Error
}
: {})
: object)

/**
* Makes `value` JSON-safe by:
Expand Down Expand Up @@ -139,7 +139,7 @@ export type Change<ReasonValue extends Reason = Reason> = {
* // ]
* ```
*/
export default function safeJsonValue<T, OptionsArg extends Options = {}>(
export default function safeJsonValue<T, OptionsArg extends Options = object>(
value: T,
options?: OptionsArg,
): {
Expand Down

0 comments on commit 621a830

Please sign in to comment.