1 parent 98c9600 commit 48e7dd5Copy full SHA for 48e7dd5
1 file changed
apps/kimi-code/src/cli/kaos-local.ts
@@ -212,7 +212,11 @@ export function execFileText(
212
args: readonly string[],
213
timeoutMs: number,
214
): Promise<string | undefined> {
215
- return new Promise((resolve) => {
+ // `resolve` is explicitly optional-arg so the bare `resolve()` error path
216
+ // stays valid: tsc rejects a missing required arg, and oxlint simplifies
217
+ // `resolve(undefined)` back to `resolve()` — the explicit signature keeps
218
+ // both tools happy.
219
+ return new Promise<string | undefined>((resolve: (value?: string | undefined) => void) => {
220
execFile(
221
file,
222
[...args],
0 commit comments