Skip to content

Commit

Permalink
refactor(file-io): update type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 19, 2024
1 parent 9df7cb0 commit 7dc9551
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/file-io/src/json.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Fn3, NumOrString } from "@thi.ng/api";
import type { Fn3, Maybe, Nullable, NumOrString } from "@thi.ng/api";
import type { ILogger } from "@thi.ng/logger";
import { readText, writeText } from "./text.js";

Expand All @@ -23,8 +23,8 @@ export const readJSON = <T = any>(path: string, logger?: ILogger): T =>
export const writeJSON = (
path: string,
obj: any,
replacer?: Fn3<any, string, any, any> | NumOrString[] | null | undefined,
space?: NumOrString | undefined,
replacer?: Fn3<any, string, any, any> | Nullable<NumOrString[]>,
space?: Maybe<NumOrString>,
logger?: ILogger,
dryRun = false
) =>
Expand Down

0 comments on commit 7dc9551

Please sign in to comment.