From 4544591615b4902e1c2766a5346e9d9669b51fc8 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sun, 7 Jul 2024 15:25:38 -0700 Subject: [PATCH] Small type tweaks --- src/cli/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/utils.ts b/src/cli/utils.ts index 1aa8296..7fdcdae 100644 --- a/src/cli/utils.ts +++ b/src/cli/utils.ts @@ -24,7 +24,7 @@ export function simplifyPath(p: string) { return p; } -export function findUp(p: string, predicate: (dir: string) => T | undefined): T | undefined { +export function findUp(p: string, predicate: (dir: string) => T | undefined): T | undefined { const root = path.parse(p).root; while (true) { @@ -51,7 +51,7 @@ export interface D { readonly cwd: () => string; readonly chdir: (directory: string) => void; readonly simplifyPath: (p: string) => string; - readonly argv: string[]; + readonly argv: readonly string[]; readonly setExitCode: (code: number) => void; readonly version: () => string;