Skip to content

Commit 1db1031

Browse files
committed
update api-extractor report
1 parent 373b2be commit 1db1031

File tree

1 file changed

+64
-11
lines changed

1 file changed

+64
-11
lines changed

api-extractor/ts-node.api.md

+64-11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export interface CreateOptions {
1515
compiler?: string;
1616
compilerHost?: boolean;
1717
compilerOptions?: object;
18+
cwd?: string;
19+
// @deprecated
1820
dir?: string;
1921
emit?: boolean;
2022
// (undocumented)
@@ -25,19 +27,23 @@ export interface CreateOptions {
2527
logError?: boolean;
2628
pretty?: boolean;
2729
project?: string;
30+
projectSearchDir?: string;
2831
// (undocumented)
2932
readFile?: (path: string) => string | undefined;
3033
require?: Array<string>;
3134
scope?: boolean;
35+
// (undocumented)
36+
scopeDir?: string;
3237
skipIgnore?: boolean;
3338
skipProject?: boolean;
3439
// (undocumented)
3540
transformers?: _ts.CustomTransformers | ((p: _ts.Program) => _ts.CustomTransformers);
3641
transpileOnly?: boolean;
42+
transpiler?: string | [string, object];
3743
typeCheck?: boolean;
3844
}
3945

40-
// @public (undocumented)
46+
// @public
4147
export function createRepl(options?: CreateReplOptions): ReplService;
4248

4349
// @public (undocumented)
@@ -56,14 +62,11 @@ export interface CreateReplOptions {
5662
stdout?: NodeJS.WritableStream;
5763
}
5864

59-
// @public
60-
export const DEFAULTS: RegisterOptions;
61-
62-
// @public
63-
export function normalizeSlashes(value: string): string;
64-
65-
// @public
66-
export function parse(value: string | undefined): object | undefined;
65+
// @public (undocumented)
66+
export interface CreateTranspilerOptions {
67+
// (undocumented)
68+
service: Pick<Service, 'config' | 'options'>;
69+
}
6770

6871
// @public @deprecated
6972
export type Register = Service;
@@ -112,14 +115,54 @@ export interface Service {
112115
ts: TSCommon;
113116
}
114117

118+
// @public (undocumented)
119+
export interface TranspileOptions {
120+
// (undocumented)
121+
fileName: string;
122+
}
123+
124+
// @public (undocumented)
125+
export interface TranspileOutput {
126+
// (undocumented)
127+
diagnostics?: _ts.Diagnostic[];
128+
// (undocumented)
129+
outputText: string;
130+
// (undocumented)
131+
sourceMapText?: string;
132+
}
133+
134+
// @public (undocumented)
135+
export interface Transpiler {
136+
// (undocumented)
137+
transpile(input: string, options: TranspileOptions): TranspileOutput;
138+
}
139+
115140
// @public
116-
export function split(value: string | undefined): string[] | undefined;
141+
export type TranspilerFactory = (options: CreateTranspilerOptions) => Transpiler;
142+
143+
// @public
144+
export interface TranspilerModule {
145+
// (undocumented)
146+
create: TranspilerFactory;
147+
}
117148

118149
// @public
119150
export interface TSCommon {
151+
// (undocumented)
152+
createDocumentRegistry: typeof _ts.createDocumentRegistry;
153+
// (undocumented)
154+
createEmitAndSemanticDiagnosticsBuilderProgram: typeof _ts.createEmitAndSemanticDiagnosticsBuilderProgram;
155+
// (undocumented)
156+
createIncrementalCompilerHost: typeof _ts.createIncrementalCompilerHost;
157+
// (undocumented)
158+
createIncrementalProgram: typeof _ts.createIncrementalProgram;
120159
// (undocumented)
121160
createLanguageService: typeof _ts.createLanguageService;
122161
// (undocumented)
162+
createModuleResolutionCache: typeof _ts.createModuleResolutionCache;
163+
// (undocumented)
164+
createSourceFile: typeof _ts.createSourceFile;
165+
// (undocumented)
123166
displayPartsToString: typeof _ts.displayPartsToString;
124167
// (undocumented)
125168
findConfigFile: typeof _ts.findConfigFile;
@@ -130,16 +173,26 @@ export interface TSCommon {
130173
// (undocumented)
131174
formatDiagnosticsWithColorAndContext: typeof _ts.formatDiagnosticsWithColorAndContext;
132175
// (undocumented)
176+
getDefaultLibFileName: typeof _ts.getDefaultLibFileName;
177+
// (undocumented)
133178
getDefaultLibFilePath: typeof _ts.getDefaultLibFilePath;
134179
// (undocumented)
135180
getPreEmitDiagnostics: typeof _ts.getPreEmitDiagnostics;
136181
// (undocumented)
182+
JsxEmit: typeof _ts.JsxEmit;
183+
// (undocumented)
137184
ModuleKind: typeof _ts.ModuleKind;
138185
// (undocumented)
139186
parseJsonConfigFileContent: typeof _ts.parseJsonConfigFileContent;
140187
// (undocumented)
141188
readConfigFile: typeof _ts.readConfigFile;
142189
// (undocumented)
190+
resolveModuleName: typeof _ts.resolveModuleName;
191+
// (undocumented)
192+
resolveModuleNameFromCache: typeof _ts.resolveModuleNameFromCache;
193+
// (undocumented)
194+
resolveTypeReferenceDirective: typeof _ts.resolveTypeReferenceDirective;
195+
// (undocumented)
143196
ScriptSnapshot: typeof _ts.ScriptSnapshot;
144197
// (undocumented)
145198
ScriptTarget: typeof _ts.ScriptTarget;
@@ -152,7 +205,7 @@ export interface TSCommon {
152205
}
153206

154207
// @public
155-
export interface TsConfigOptions extends Omit<RegisterOptions, 'transformers' | 'readFile' | 'fileExists' | 'skipProject' | 'project' | 'dir'> {
208+
export interface TsConfigOptions extends Omit<RegisterOptions, 'transformers' | 'readFile' | 'fileExists' | 'skipProject' | 'project' | 'dir' | 'cwd' | 'projectSearchDir' | 'scope' | 'scopeDir' | 'experimentalEsmLoader'> {
156209
}
157210

158211
// @public

0 commit comments

Comments
 (0)