Skip to content

Commit ea67f5b

Browse files
committed
cleanup
1 parent a2f0020 commit ea67f5b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { hasTTY } from "std-env";
1111
import { applyEnv } from "./env";
1212
import { snakeCase } from "scule";
1313
import { klona } from "klona";
14-
import { expectTypeOf } from "vitest";
1514

1615
const prompt = enquirer?.prompt;
1716

@@ -101,7 +100,7 @@ async function search<T>(
101100
searchPlaces?: string[],
102101
): Promise<ConfigLoaderResult<T> | null> {
103102
return getExplorer(moduleName, searchStrategy, searchPlaces).search(
104-
searchFrom
103+
searchFrom,
105104
) as Promise<ConfigLoaderResult<T>>;
106105
}
107106

@@ -129,11 +128,10 @@ export async function loadConfig<
129128
TRequired extends Array<Exclude<keyof T, number | symbol>> = Array<
130129
Exclude<keyof T, number | symbol>
131130
>,
132-
TResult extends Record<string, any> =
133-
TOverrides &
131+
TResult extends Record<string, any> = TOverrides &
134132
TDefaultConfig & {
135133
[K in TRequired[number]]?: any;
136-
} & T
134+
} & T,
137135
>(options: {
138136
name: string;
139137
searchStrategy?: SearchStrategy;

0 commit comments

Comments
 (0)