typescript 5.1.0-dev.20230420 → 5.1.0-dev.20230421
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 +207 -41
- package/lib/tsserver.js +341 -161
- package/lib/tsserverlibrary.d.ts +6 -6
- package/lib/tsserverlibrary.js +339 -155
- package/lib/typescript.d.ts +3 -1
- package/lib/typescript.js +240 -57
- package/lib/typingsInstaller.js +3 -1
- package/package.json +5 -3
package/lib/typescript.d.ts
CHANGED
|
@@ -5222,7 +5222,7 @@ declare namespace ts {
|
|
|
5222
5222
|
* this list is only the set of defaults that are implicitly included.
|
|
5223
5223
|
*/
|
|
5224
5224
|
function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
|
|
5225
|
-
function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
|
|
5225
|
+
function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache;
|
|
5226
5226
|
function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
|
|
5227
5227
|
function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
5228
5228
|
function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
|
|
@@ -6153,6 +6153,8 @@ declare namespace ts {
|
|
|
6153
6153
|
getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
|
|
6154
6154
|
/** @deprecated Use the signature with `UserPreferences` instead. */
|
|
6155
6155
|
getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
|
|
6156
|
+
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, preferences: UserPreferences): readonly RenameLocation[] | undefined;
|
|
6157
|
+
/** @deprecated Pass `providePrefixAndSuffixTextForRename` as part of a `UserPreferences` parameter. */
|
|
6156
6158
|
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
|
|
6157
6159
|
getSmartSelectionRange(fileName: string, position: number): SelectionRange;
|
|
6158
6160
|
getDefinitionAtPosition(fileName: string, position: number): readonly DefinitionInfo[] | undefined;
|