Skip to content

Commit

Permalink
Small type tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jul 7, 2024
1 parent e8bc20f commit 4544591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function simplifyPath(p: string) {
return p;
}

export function findUp<T>(p: string, predicate: (dir: string) => T | undefined): T | undefined {
export function findUp<T extends {}>(p: string, predicate: (dir: string) => T | undefined): T | undefined {
const root = path.parse(p).root;

while (true) {
Expand All @@ -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;

Expand Down

0 comments on commit 4544591

Please sign in to comment.