typescript 4.8.0-dev.20220731 → 4.8.0-dev.20220803
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/cs/diagnosticMessages.generated.json +1 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/lib.es2015.promise.d.ts +9 -4
- package/lib/lib.es5.d.ts +2 -2
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +1 -0
- package/lib/tr/diagnosticMessages.generated.json +1 -0
- package/lib/tsc.js +256 -139
- package/lib/tsserver.js +331 -201
- package/lib/tsserverlibrary.d.ts +16 -10
- package/lib/tsserverlibrary.js +331 -201
- package/lib/typescript.d.ts +16 -10
- package/lib/typescript.js +326 -196
- package/lib/typescriptServices.d.ts +16 -10
- package/lib/typescriptServices.js +326 -196
- package/lib/typingsInstaller.js +285 -163
- package/package.json +1 -1
package/lib/typescript.d.ts
CHANGED
|
@@ -5419,6 +5419,10 @@ declare namespace ts {
|
|
|
5419
5419
|
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5420
5420
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5421
5421
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5422
|
+
/**
|
|
5423
|
+
* 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
|
|
5424
|
+
*/
|
|
5425
|
+
getModuleResolutionCache?(): ModuleResolutionCache | undefined;
|
|
5422
5426
|
}
|
|
5423
5427
|
interface WatchCompilerHost<T extends BuilderProgram> extends ProgramHost<T>, WatchHost {
|
|
5424
5428
|
/** Instead of using output d.ts file from project reference, use its source file */
|
|
@@ -6898,8 +6902,8 @@ declare namespace ts {
|
|
|
6898
6902
|
* @param version Current version of the file. Only used if the file was not found
|
|
6899
6903
|
* in the registry and a new one was created.
|
|
6900
6904
|
*/
|
|
6901
|
-
acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6902
|
-
acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6905
|
+
acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6906
|
+
acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6903
6907
|
/**
|
|
6904
6908
|
* Request an updated version of an already existing SourceFile with a given fileName
|
|
6905
6909
|
* and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile
|
|
@@ -6915,8 +6919,8 @@ declare namespace ts {
|
|
|
6915
6919
|
* @param scriptSnapshot Text of the file.
|
|
6916
6920
|
* @param version Current version of the file.
|
|
6917
6921
|
*/
|
|
6918
|
-
updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6919
|
-
updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6922
|
+
updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6923
|
+
updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6920
6924
|
getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey;
|
|
6921
6925
|
/**
|
|
6922
6926
|
* Informs the DocumentRegistry that a file is not needed any longer.
|
|
@@ -6926,9 +6930,10 @@ declare namespace ts {
|
|
|
6926
6930
|
*
|
|
6927
6931
|
* @param fileName The name of the file to be released
|
|
6928
6932
|
* @param compilationSettings The compilation settings used to acquire the file
|
|
6933
|
+
* @param scriptKind The script kind of the file to be released
|
|
6929
6934
|
*/
|
|
6930
|
-
/**@deprecated pass scriptKind for correctness */
|
|
6931
|
-
releaseDocument(fileName: string, compilationSettings: CompilerOptions): void;
|
|
6935
|
+
/**@deprecated pass scriptKind and impliedNodeFormat for correctness */
|
|
6936
|
+
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): void;
|
|
6932
6937
|
/**
|
|
6933
6938
|
* Informs the DocumentRegistry that a file is not needed any longer.
|
|
6934
6939
|
*
|
|
@@ -6938,12 +6943,13 @@ declare namespace ts {
|
|
|
6938
6943
|
* @param fileName The name of the file to be released
|
|
6939
6944
|
* @param compilationSettings The compilation settings used to acquire the file
|
|
6940
6945
|
* @param scriptKind The script kind of the file to be released
|
|
6946
|
+
* @param impliedNodeFormat The implied source file format of the file to be released
|
|
6941
6947
|
*/
|
|
6942
|
-
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind): void;
|
|
6948
|
+
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
|
|
6943
6949
|
/**
|
|
6944
|
-
* @deprecated pass scriptKind for correctness */
|
|
6945
|
-
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void;
|
|
6946
|
-
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind): void;
|
|
6950
|
+
* @deprecated pass scriptKind for and impliedNodeFormat correctness */
|
|
6951
|
+
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
|
|
6952
|
+
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
|
|
6947
6953
|
reportStats(): string;
|
|
6948
6954
|
}
|
|
6949
6955
|
type DocumentRegistryBucketKey = string & {
|