@@ -19,6 +19,7 @@ export interface CreateOptions {
19
19
// @deprecated
20
20
dir? : string ;
21
21
emit? : boolean ;
22
+ experimentalReplAwait? : boolean ;
22
23
// (undocumented)
23
24
fileExists? : (path : string ) => boolean ;
24
25
files? : boolean ;
@@ -69,6 +70,9 @@ export interface CreateTranspilerOptions {
69
70
service: Pick <Service , ' config' | ' options' >;
70
71
}
71
72
73
+ // @public
74
+ export type EvalAwarePartialHost = Pick <CreateOptions , ' readFile' | ' fileExists' >;
75
+
72
76
// @public @deprecated
73
77
export type Register = Service ;
74
78
@@ -85,15 +89,14 @@ export interface RegisterOptions extends CreateOptions {
85
89
86
90
// @public (undocumented)
87
91
export interface ReplService {
88
- // Warning: (ae-forgotten-export) The symbol "EvalAwarePartialHost" needs to be exported by the entry point index.d.ts
89
- //
90
92
// (undocumented)
91
93
evalAwarePartialHost: EvalAwarePartialHost ;
92
- // (undocumented)
93
- evalCode(code : string ): void ;
94
- nodeEval(code : string , _context : any , _filename : string , callback : (err : Error | null , result ? : any ) => any ): void ;
94
+ evalCode(code : string ): any ;
95
+ nodeEval(code : string , context : any , _filename : string , callback : (err : Error | null , result ? : any ) => any ): void ;
95
96
setService(service : Service ): void ;
96
- start(code ? : string ): void ;
97
+ start(): void ;
98
+ // @deprecated
99
+ start(code : string ): void ;
97
100
// (undocumented)
98
101
readonly state: EvalState ;
99
102
}
0 commit comments