Skip to content

Commit a951471

Browse files
committed
Address API issues discovered by api-extractor
1 parent e600f17 commit a951471

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ import { createResolverFunctions } from './resolver-functions';
2626
import { ScriptTarget } from 'typescript';
2727

2828
export { TSCommon };
29-
export { createRepl, CreateReplOptions, ReplService } from './repl';
29+
export {
30+
createRepl,
31+
CreateReplOptions,
32+
ReplService,
33+
EvalAwarePartialHost,
34+
} from './repl';
3035
export type {
3136
TranspilerModule,
3237
TranspilerFactory,

src/repl.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ export interface ReplService {
8282
*/
8383
nodeEval(
8484
code: string,
85-
context: Context,
85+
// TODO change to `Context` in a future release? Technically a breaking change
86+
context: any,
8687
_filename: string,
8788
callback: (err: Error | null, result?: any) => any
8889
): void;
@@ -218,7 +219,7 @@ export function createRepl(options: CreateReplOptions = {}) {
218219

219220
function nodeEval(
220221
code: string,
221-
context: Context,
222+
context: any,
222223
_filename: string,
223224
callback: (err: Error | null, result?: any) => any
224225
) {

0 commit comments

Comments
 (0)