Skip to content

Commit

Permalink
Address API issues discovered by api-extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Aug 8, 2021
1 parent e600f17 commit a951471
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions src/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
) {
Expand Down

0 comments on commit a951471

Please sign in to comment.