From a951471219b981b0d2683f4ca324cff28c726321 Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Sun, 8 Aug 2021 18:58:10 -0400 Subject: [PATCH] Address API issues discovered by api-extractor --- src/index.ts | 7 ++++++- src/repl.ts | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index c9b4f0483..165c14354 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,12 @@ import { createResolverFunctions } from './resolver-functions'; import { ScriptTarget } from 'typescript'; export { TSCommon }; -export { createRepl, CreateReplOptions, ReplService } from './repl'; +export { + createRepl, + CreateReplOptions, + ReplService, + EvalAwarePartialHost, +} from './repl'; export type { TranspilerModule, TranspilerFactory, diff --git a/src/repl.ts b/src/repl.ts index 49a0c6c44..8ead036ac 100644 --- a/src/repl.ts +++ b/src/repl.ts @@ -82,7 +82,8 @@ export interface ReplService { */ nodeEval( code: string, - context: Context, + // TODO change to `Context` in a future release? Technically a breaking change + context: any, _filename: string, callback: (err: Error | null, result?: any) => any ): void; @@ -218,7 +219,7 @@ export function createRepl(options: CreateReplOptions = {}) { function nodeEval( code: string, - context: Context, + context: any, _filename: string, callback: (err: Error | null, result?: any) => any ) {