Skip to content

Commit

Permalink
update api-extractor report for v10.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 20, 2022
1 parent 03a3ee7 commit 682fd6c
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions api-extractor/ts-node.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface CreateOptions {
emit?: boolean;
esm?: boolean;
experimentalReplAwait?: boolean;
experimentalSpecifierResolution?: 'node' | 'explicit';
// (undocumented)
fileExists?: (path: string) => boolean;
files?: boolean;
Expand Down Expand Up @@ -59,7 +60,7 @@ export interface CreateOptions {
// @public
export function createRepl(options?: CreateReplOptions): ReplService;

// @public (undocumented)
// @public
export interface CreateReplOptions {
// (undocumented)
service?: Service;
Expand All @@ -75,7 +76,7 @@ export interface CreateReplOptions {
stdout?: NodeJS.WritableStream;
}

// @public (undocumented)
// @public
export interface CreateTranspilerOptions {
// (undocumented)
service: Pick<Service, Extract<'config' | 'options' | 'projectLocalResolveHelper', keyof Service>>;
Expand All @@ -85,7 +86,13 @@ export interface CreateTranspilerOptions {
export type EvalAwarePartialHost = Pick<CreateOptions, 'readFile' | 'fileExists'>;

// @public (undocumented)
export type ModuleTypes = Record<string, 'cjs' | 'esm' | 'package'>;
export type ExperimentalSpecifierResolution = 'node' | 'explicit';

// @public (undocumented)
export type ModuleTypeOverride = 'cjs' | 'esm' | 'package';

// @public (undocumented)
export type ModuleTypes = Record<string, ModuleTypeOverride>;

// @public (undocumented)
export interface NodeLoaderHooksAPI1 {
Expand Down Expand Up @@ -131,6 +138,7 @@ export namespace NodeLoaderHooksAPI2 {
}, defaultLoad: NodeLoaderHooksAPI2['load']) => Promise<{
format: NodeLoaderHooksFormat;
source: string | Buffer | undefined;
shortCircuit?: boolean;
}>;
// (undocumented)
export interface NodeImportAssertions {
Expand All @@ -147,12 +155,16 @@ export namespace NodeLoaderHooksAPI2 {
}, defaultResolve: ResolveHook) => Promise<{
url: string;
format?: NodeLoaderHooksFormat;
shortCircuit?: boolean;
}>;
}

// @public (undocumented)
export type NodeLoaderHooksFormat = 'builtin' | 'commonjs' | 'dynamic' | 'json' | 'module' | 'wasm';

// @public
export type NodeModuleEmitKind = 'nodeesm' | 'nodecjs';

// @public @deprecated
export type Register = Service;

Expand All @@ -167,7 +179,7 @@ export const REGISTER_INSTANCE: unique symbol;

// @public
export interface RegisterOptions extends CreateOptions {
experimentalResolverFeatures?: boolean;
experimentalResolver?: boolean;
}

// @public (undocumented)
Expand Down Expand Up @@ -202,13 +214,13 @@ export interface Service {
ts: TSCommon;
}

// @public (undocumented)
// @public
export interface TranspileOptions {
// (undocumented)
fileName: string;
}

// @public (undocumented)
// @public
export interface TranspileOutput {
// (undocumented)
diagnostics?: _ts.Diagnostic[];
Expand All @@ -218,7 +230,7 @@ export interface TranspileOutput {
sourceMapText?: string;
}

// @public (undocumented)
// @public
export interface Transpiler {
// (undocumented)
transpile(input: string, options: TranspileOptions): TranspileOutput;
Expand Down Expand Up @@ -270,7 +282,7 @@ export interface TSCommon {
// (undocumented)
JsxEmit: typeof _ts.JsxEmit;
// (undocumented)
ModuleKind: typeof _ts.ModuleKind;
ModuleKind: TSCommon.ModuleKindEnum;
// (undocumented)
ModuleResolutionKind: typeof _ts.ModuleResolutionKind;
// (undocumented)
Expand Down Expand Up @@ -307,6 +319,12 @@ export namespace TSCommon {
resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | _ts.FileReference[], containingFile: string, redirectedReference: _ts.ResolvedProjectReference | undefined, options: _ts.CompilerOptions, containingFileMode?: _ts.SourceFile['impliedNodeFormat'] | undefined): (_ts.ResolvedTypeReferenceDirective | undefined)[];
}
// (undocumented)
export type ModuleKindEnum = typeof _ts.ModuleKind & {
Node16: typeof _ts.ModuleKind extends {
Node16: any;
} ? typeof _ts.ModuleKind['Node16'] : 100;
};
// (undocumented)
export type ModuleResolutionHost = _ts.ModuleResolutionHost;
// (undocumented)
export type ParsedCommandLine = _ts.ParsedCommandLine;
Expand All @@ -328,10 +346,12 @@ export interface TsConfigOptions extends Omit<RegisterOptions, 'transformers' |

// @public
export class TSError extends BaseError {
constructor(diagnosticText: string, diagnosticCodes: number[]);
constructor(diagnosticText: string, diagnosticCodes: number[], diagnostics?: ReadonlyArray<_ts.Diagnostic>);
// (undocumented)
diagnosticCodes: number[];
// (undocumented)
diagnostics: ReadonlyArray<_ts.Diagnostic>;
// (undocumented)
diagnosticText: string;
// (undocumented)
name: string;
Expand Down

0 comments on commit 682fd6c

Please sign in to comment.