@typescript-deploys/pr-build 5.0.0-pr-51387-49 → 5.0.0-pr-51157-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +730 -490
- package/lib/tsserver.js +794 -505
- package/lib/tsserverlibrary.d.ts +20 -9
- package/lib/tsserverlibrary.js +794 -505
- package/lib/typescript.d.ts +18 -7
- package/lib/typescript.js +776 -500
- package/lib/typingsInstaller.js +112 -120
- package/package.json +1 -1
package/lib/typescript.d.ts
CHANGED
|
@@ -3440,6 +3440,12 @@ declare namespace ts {
|
|
|
3440
3440
|
readonly resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined;
|
|
3441
3441
|
readonly failedLookupLocations: string[];
|
|
3442
3442
|
}
|
|
3443
|
+
interface ResolutionInfo<T> {
|
|
3444
|
+
names: readonly T[];
|
|
3445
|
+
reusedNames: readonly T[] | undefined;
|
|
3446
|
+
}
|
|
3447
|
+
type ModuleResolutionInfo = ResolutionInfo<StringLiteralLike>;
|
|
3448
|
+
type TypeReferenceDirectiveResolutionInfo = ResolutionInfo<string | FileReference>;
|
|
3443
3449
|
interface CompilerHost extends ModuleResolutionHost {
|
|
3444
3450
|
getSourceFile(fileName: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined;
|
|
3445
3451
|
getSourceFileByPath?(fileName: string, path: Path, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined;
|
|
@@ -3452,7 +3458,7 @@ declare namespace ts {
|
|
|
3452
3458
|
useCaseSensitiveFileNames(): boolean;
|
|
3453
3459
|
getNewLine(): string;
|
|
3454
3460
|
readDirectory?(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[];
|
|
3455
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
3461
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, resolutionInfo?: ModuleResolutionInfo): (ResolvedModule | undefined)[];
|
|
3456
3462
|
/**
|
|
3457
3463
|
* Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
|
|
3458
3464
|
*/
|
|
@@ -3460,7 +3466,7 @@ declare namespace ts {
|
|
|
3460
3466
|
/**
|
|
3461
3467
|
* This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files
|
|
3462
3468
|
*/
|
|
3463
|
-
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
3469
|
+
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined, resolutionInfo?: TypeReferenceDirectiveResolutionInfo): (ResolvedTypeReferenceDirective | undefined)[];
|
|
3464
3470
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
3465
3471
|
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
3466
3472
|
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
@@ -4867,7 +4873,7 @@ declare namespace ts {
|
|
|
4867
4873
|
/** True if has initializer node attached to it. */
|
|
4868
4874
|
function hasOnlyExpressionInitializer(node: Node): node is HasExpressionInitializer;
|
|
4869
4875
|
function isObjectLiteralElement(node: Node): node is ObjectLiteralElement;
|
|
4870
|
-
function isStringLiteralLike(node: Node): node is StringLiteralLike;
|
|
4876
|
+
function isStringLiteralLike(node: Node | FileReference): node is StringLiteralLike;
|
|
4871
4877
|
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
|
|
4872
4878
|
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
|
|
4873
4879
|
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
|
|
@@ -5732,9 +5738,9 @@ declare namespace ts {
|
|
|
5732
5738
|
/** If provided is used to get the environment variable */
|
|
5733
5739
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
5734
5740
|
/** If provided, used to resolve the module names, otherwise typescript's default module resolution */
|
|
5735
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5741
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, resolutionInfo?: ModuleResolutionInfo): (ResolvedModule | undefined)[];
|
|
5736
5742
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5737
|
-
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5743
|
+
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined, resolutionInfo?: TypeReferenceDirectiveResolutionInfo): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5738
5744
|
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
5739
5745
|
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
5740
5746
|
/**
|
|
@@ -5810,6 +5816,11 @@ declare namespace ts {
|
|
|
5810
5816
|
verbose?: boolean;
|
|
5811
5817
|
incremental?: boolean;
|
|
5812
5818
|
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
5819
|
+
declaration?: boolean;
|
|
5820
|
+
declarationMap?: boolean;
|
|
5821
|
+
emitDeclarationOnly?: boolean;
|
|
5822
|
+
sourceMap?: boolean;
|
|
5823
|
+
inlineSourceMap?: boolean;
|
|
5813
5824
|
traceResolution?: boolean;
|
|
5814
5825
|
[option: string]: CompilerOptionsValue | undefined;
|
|
5815
5826
|
}
|
|
@@ -6034,9 +6045,9 @@ declare namespace ts {
|
|
|
6034
6045
|
readFile(path: string, encoding?: string): string | undefined;
|
|
6035
6046
|
fileExists(path: string): boolean;
|
|
6036
6047
|
getTypeRootsVersion?(): number;
|
|
6037
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
6048
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, resolutionInfo?: ModuleResolutionInfo): (ResolvedModule | undefined)[];
|
|
6038
6049
|
getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
6039
|
-
resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
6050
|
+
resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined, resolutionInfo?: TypeReferenceDirectiveResolutionInfo): (ResolvedTypeReferenceDirective | undefined)[];
|
|
6040
6051
|
getDirectories?(directoryName: string): string[];
|
|
6041
6052
|
/**
|
|
6042
6053
|
* Gets a set of custom transformers to use during emit.
|