@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/tsserverlibrary.d.ts
CHANGED
|
@@ -3184,10 +3184,10 @@ declare namespace ts {
|
|
|
3184
3184
|
readFile(fileName: string): string | undefined;
|
|
3185
3185
|
writeFile(fileName: string, content: string): void;
|
|
3186
3186
|
fileExists(file: string): boolean;
|
|
3187
|
-
resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModuleFull | undefined)[];
|
|
3187
|
+
resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingSourceFile?: SourceFile, resolutionInfo?: ModuleResolutionInfo): (ResolvedModuleFull | undefined)[];
|
|
3188
3188
|
getModuleResolutionCache(): ModuleResolutionCache | undefined;
|
|
3189
3189
|
getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
3190
|
-
resolveTypeReferenceDirectives(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
3190
|
+
resolveTypeReferenceDirectives(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined, resolutionInfo?: TypeReferenceDirectiveResolutionInfo): (ResolvedTypeReferenceDirective | undefined)[];
|
|
3191
3191
|
directoryExists(path: string): boolean;
|
|
3192
3192
|
getDirectories(path: string): string[];
|
|
3193
3193
|
log(s: string): void;
|
|
@@ -7378,6 +7378,12 @@ declare namespace ts {
|
|
|
7378
7378
|
readonly resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined;
|
|
7379
7379
|
readonly failedLookupLocations: string[];
|
|
7380
7380
|
}
|
|
7381
|
+
interface ResolutionInfo<T> {
|
|
7382
|
+
names: readonly T[];
|
|
7383
|
+
reusedNames: readonly T[] | undefined;
|
|
7384
|
+
}
|
|
7385
|
+
type ModuleResolutionInfo = ResolutionInfo<StringLiteralLike>;
|
|
7386
|
+
type TypeReferenceDirectiveResolutionInfo = ResolutionInfo<string | FileReference>;
|
|
7381
7387
|
interface CompilerHost extends ModuleResolutionHost {
|
|
7382
7388
|
getSourceFile(fileName: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined;
|
|
7383
7389
|
getSourceFileByPath?(fileName: string, path: Path, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined;
|
|
@@ -7390,7 +7396,7 @@ declare namespace ts {
|
|
|
7390
7396
|
useCaseSensitiveFileNames(): boolean;
|
|
7391
7397
|
getNewLine(): string;
|
|
7392
7398
|
readDirectory?(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[];
|
|
7393
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
7399
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, resolutionInfo?: ModuleResolutionInfo): (ResolvedModule | undefined)[];
|
|
7394
7400
|
/**
|
|
7395
7401
|
* 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
|
|
7396
7402
|
*/
|
|
@@ -7398,7 +7404,7 @@ declare namespace ts {
|
|
|
7398
7404
|
/**
|
|
7399
7405
|
* This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files
|
|
7400
7406
|
*/
|
|
7401
|
-
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
7407
|
+
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined, resolutionInfo?: TypeReferenceDirectiveResolutionInfo): (ResolvedTypeReferenceDirective | undefined)[];
|
|
7402
7408
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
7403
7409
|
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
7404
7410
|
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
@@ -8805,7 +8811,7 @@ declare namespace ts {
|
|
|
8805
8811
|
/** True if has initializer node attached to it. */
|
|
8806
8812
|
function hasOnlyExpressionInitializer(node: Node): node is HasExpressionInitializer;
|
|
8807
8813
|
function isObjectLiteralElement(node: Node): node is ObjectLiteralElement;
|
|
8808
|
-
function isStringLiteralLike(node: Node): node is StringLiteralLike;
|
|
8814
|
+
function isStringLiteralLike(node: Node | FileReference): node is StringLiteralLike;
|
|
8809
8815
|
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
|
|
8810
8816
|
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
|
|
8811
8817
|
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
|
|
@@ -9670,9 +9676,9 @@ declare namespace ts {
|
|
|
9670
9676
|
/** If provided is used to get the environment variable */
|
|
9671
9677
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
9672
9678
|
/** If provided, used to resolve the module names, otherwise typescript's default module resolution */
|
|
9673
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
9679
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, resolutionInfo?: ModuleResolutionInfo): (ResolvedModule | undefined)[];
|
|
9674
9680
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
9675
|
-
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
9681
|
+
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined, resolutionInfo?: TypeReferenceDirectiveResolutionInfo): (ResolvedTypeReferenceDirective | undefined)[];
|
|
9676
9682
|
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
9677
9683
|
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
9678
9684
|
/**
|
|
@@ -9748,6 +9754,11 @@ declare namespace ts {
|
|
|
9748
9754
|
verbose?: boolean;
|
|
9749
9755
|
incremental?: boolean;
|
|
9750
9756
|
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
9757
|
+
declaration?: boolean;
|
|
9758
|
+
declarationMap?: boolean;
|
|
9759
|
+
emitDeclarationOnly?: boolean;
|
|
9760
|
+
sourceMap?: boolean;
|
|
9761
|
+
inlineSourceMap?: boolean;
|
|
9751
9762
|
traceResolution?: boolean;
|
|
9752
9763
|
[option: string]: CompilerOptionsValue | undefined;
|
|
9753
9764
|
}
|
|
@@ -9899,9 +9910,9 @@ declare namespace ts {
|
|
|
9899
9910
|
readFile(path: string, encoding?: string): string | undefined;
|
|
9900
9911
|
fileExists(path: string): boolean;
|
|
9901
9912
|
getTypeRootsVersion?(): number;
|
|
9902
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
9913
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, resolutionInfo?: ModuleResolutionInfo): (ResolvedModule | undefined)[];
|
|
9903
9914
|
getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
9904
|
-
resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
9915
|
+
resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined, resolutionInfo?: TypeReferenceDirectiveResolutionInfo): (ResolvedTypeReferenceDirective | undefined)[];
|
|
9905
9916
|
getDirectories?(directoryName: string): string[];
|
|
9906
9917
|
/**
|
|
9907
9918
|
* Gets a set of custom transformers to use during emit.
|