Skip to content

Commit 4402f0e

Browse files
committed
fix(types): ensure all code paths return a value (#458)
1 parent acb8597 commit 4402f0e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/lib/AbstractChatCompletionRunner.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ export abstract class AbstractChatCompletionRunner<
252252
return message.function_call;
253253
}
254254
}
255+
256+
return;
255257
}
256258

257259
/**
@@ -270,6 +272,8 @@ export abstract class AbstractChatCompletionRunner<
270272
return message.content as string;
271273
}
272274
}
275+
276+
return;
273277
}
274278

275279
async finalFunctionCallResult(): Promise<string | undefined> {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"strictBindCallApply": true,
2828
"strictPropertyInitialization": true,
2929
"noImplicitThis": true,
30+
"noImplicitReturns": true,
3031
"alwaysStrict": true,
3132
"exactOptionalPropertyTypes": true,
3233
"noUncheckedIndexedAccess": true,

0 commit comments

Comments
 (0)