@schematics/angular 19.0.2 → 19.1.0-next.0
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/guard/type-files/__name@dasherize__.guard.spec.ts.template +1 -1
- package/migrations/update-ssr-imports/migration.js +17 -7
- package/module/index.js +17 -7
- package/package.json +3 -3
- package/service-worker/index.js +17 -7
- package/ssr/index.js +17 -7
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +82 -22
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +5568 -2986
- package/utility/add-declaration-to-ng-module.js +17 -7
- package/utility/ast-utils.js +17 -7
- package/utility/dependency.js +17 -7
- package/utility/latest-versions/package.json +4 -4
- package/utility/latest-versions.js +2 -2
- package/utility/ng-ast-utils.js +17 -7
|
@@ -4,7 +4,7 @@ import { <%= guardType %> } from '@angular/router';
|
|
|
4
4
|
import { <%= camelize(name) %>Guard } from './<%= dasherize(name) %>.guard';
|
|
5
5
|
|
|
6
6
|
describe('<%= camelize(name) %>Guard', () => {
|
|
7
|
-
const executeGuard: <%= guardType %> = (...guardParameters) =>
|
|
7
|
+
const executeGuard: <%= guardType %><% if (guardType === 'CanDeactivateFn') { %><unknown><% } %> = (...guardParameters) =>
|
|
8
8
|
TestBed.runInInjectionContext(() => <%= camelize(name) %>Guard(...guardParameters));
|
|
9
9
|
|
|
10
10
|
beforeEach(() => {
|
|
@@ -22,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
22
22
|
}) : function(o, v) {
|
|
23
23
|
o["default"] = v;
|
|
24
24
|
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
25
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
26
|
+
var ownKeys = function(o) {
|
|
27
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28
|
+
var ar = [];
|
|
29
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
30
|
+
return ar;
|
|
31
|
+
};
|
|
32
|
+
return ownKeys(o);
|
|
33
|
+
};
|
|
34
|
+
return function (mod) {
|
|
35
|
+
if (mod && mod.__esModule) return mod;
|
|
36
|
+
var result = {};
|
|
37
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
38
|
+
__setModuleDefault(result, mod);
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
})();
|
|
32
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
43
|
exports.default = default_1;
|
|
34
44
|
const ts = __importStar(require("../../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
|
package/module/index.js
CHANGED
|
@@ -22,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
22
22
|
}) : function(o, v) {
|
|
23
23
|
o["default"] = v;
|
|
24
24
|
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
25
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
26
|
+
var ownKeys = function(o) {
|
|
27
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28
|
+
var ar = [];
|
|
29
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
30
|
+
return ar;
|
|
31
|
+
};
|
|
32
|
+
return ownKeys(o);
|
|
33
|
+
};
|
|
34
|
+
return function (mod) {
|
|
35
|
+
if (mod && mod.__esModule) return mod;
|
|
36
|
+
var result = {};
|
|
37
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
38
|
+
__setModuleDefault(result, mod);
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
})();
|
|
32
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
43
|
exports.default = default_1;
|
|
34
44
|
const schematics_1 = require("@angular-devkit/schematics");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.1.0-next.0",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"schematics": "./collection.json",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@angular-devkit/core": "19.0.
|
|
26
|
-
"@angular-devkit/schematics": "19.0.
|
|
25
|
+
"@angular-devkit/core": "19.1.0-next.0",
|
|
26
|
+
"@angular-devkit/schematics": "19.1.0-next.0",
|
|
27
27
|
"jsonc-parser": "3.3.1"
|
|
28
28
|
},
|
|
29
29
|
"packageManager": "yarn@4.5.0",
|
package/service-worker/index.js
CHANGED
|
@@ -22,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
22
22
|
}) : function(o, v) {
|
|
23
23
|
o["default"] = v;
|
|
24
24
|
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
25
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
26
|
+
var ownKeys = function(o) {
|
|
27
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28
|
+
var ar = [];
|
|
29
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
30
|
+
return ar;
|
|
31
|
+
};
|
|
32
|
+
return ownKeys(o);
|
|
33
|
+
};
|
|
34
|
+
return function (mod) {
|
|
35
|
+
if (mod && mod.__esModule) return mod;
|
|
36
|
+
var result = {};
|
|
37
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
38
|
+
__setModuleDefault(result, mod);
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
})();
|
|
32
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
43
|
exports.default = default_1;
|
|
34
44
|
const core_1 = require("@angular-devkit/core");
|
package/ssr/index.js
CHANGED
|
@@ -22,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
22
22
|
}) : function(o, v) {
|
|
23
23
|
o["default"] = v;
|
|
24
24
|
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
25
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
26
|
+
var ownKeys = function(o) {
|
|
27
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28
|
+
var ar = [];
|
|
29
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
30
|
+
return ar;
|
|
31
|
+
};
|
|
32
|
+
return ownKeys(o);
|
|
33
|
+
};
|
|
34
|
+
return function (mod) {
|
|
35
|
+
if (mod && mod.__esModule) return mod;
|
|
36
|
+
var result = {};
|
|
37
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
38
|
+
__setModuleDefault(result, mod);
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
})();
|
|
32
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
43
|
exports.default = default_1;
|
|
34
44
|
exports.setPrompterForTestOnly = setPrompterForTestOnly;
|
|
@@ -107,6 +107,7 @@ declare namespace ts {
|
|
|
107
107
|
GetApplicableRefactors = "getApplicableRefactors",
|
|
108
108
|
GetEditsForRefactor = "getEditsForRefactor",
|
|
109
109
|
GetMoveToRefactoringFileSuggestions = "getMoveToRefactoringFileSuggestions",
|
|
110
|
+
PreparePasteEdits = "preparePasteEdits",
|
|
110
111
|
GetPasteEdits = "getPasteEdits",
|
|
111
112
|
OrganizeImports = "organizeImports",
|
|
112
113
|
GetEditsForFileRename = "getEditsForFileRename",
|
|
@@ -363,6 +364,10 @@ declare namespace ts {
|
|
|
363
364
|
* Indicate if the file name list of the project is needed
|
|
364
365
|
*/
|
|
365
366
|
needFileNameList: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* if true returns details about default configured project calculation
|
|
369
|
+
*/
|
|
370
|
+
needDefaultConfiguredProjectInfo?: boolean;
|
|
366
371
|
}
|
|
367
372
|
/**
|
|
368
373
|
* A request to get the project information of the current file.
|
|
@@ -386,6 +391,17 @@ declare namespace ts {
|
|
|
386
391
|
*/
|
|
387
392
|
projectFileName: string;
|
|
388
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* Details about the default project for the file if tsconfig file is found
|
|
396
|
+
*/
|
|
397
|
+
export interface DefaultConfiguredProjectInfo {
|
|
398
|
+
/** List of config files looked and did not match because file was not part of root file names */
|
|
399
|
+
notMatchedByConfig?: readonly string[];
|
|
400
|
+
/** List of projects which were loaded but file was not part of the project or is file from referenced project */
|
|
401
|
+
notInProject?: readonly string[];
|
|
402
|
+
/** Configured project used as default */
|
|
403
|
+
defaultProject?: string;
|
|
404
|
+
}
|
|
389
405
|
/**
|
|
390
406
|
* Response message body for "projectInfo" request
|
|
391
407
|
*/
|
|
@@ -403,6 +419,10 @@ declare namespace ts {
|
|
|
403
419
|
* Indicates if the project has a active language service instance
|
|
404
420
|
*/
|
|
405
421
|
languageServiceDisabled?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Information about default project
|
|
424
|
+
*/
|
|
425
|
+
configuredProjectInfo?: DefaultConfiguredProjectInfo;
|
|
406
426
|
}
|
|
407
427
|
/**
|
|
408
428
|
* Represents diagnostic info that includes location of diagnostic in two forms
|
|
@@ -495,6 +515,19 @@ declare namespace ts {
|
|
|
495
515
|
files: string[];
|
|
496
516
|
};
|
|
497
517
|
}
|
|
518
|
+
/**
|
|
519
|
+
* Request to check if `pasteEdits` should be provided for a given location post copying text from that location.
|
|
520
|
+
*/
|
|
521
|
+
export interface PreparePasteEditsRequest extends FileRequest {
|
|
522
|
+
command: CommandTypes.PreparePasteEdits;
|
|
523
|
+
arguments: PreparePasteEditsRequestArgs;
|
|
524
|
+
}
|
|
525
|
+
export interface PreparePasteEditsRequestArgs extends FileRequestArgs {
|
|
526
|
+
copiedTextSpan: TextSpan[];
|
|
527
|
+
}
|
|
528
|
+
export interface PreparePasteEditsResponse extends Response {
|
|
529
|
+
body: boolean;
|
|
530
|
+
}
|
|
498
531
|
/**
|
|
499
532
|
* Request refactorings at a given position post pasting text from some other location.
|
|
500
533
|
*/
|
|
@@ -2507,6 +2540,7 @@ declare namespace ts {
|
|
|
2507
2540
|
ES2021 = "es2021",
|
|
2508
2541
|
ES2022 = "es2022",
|
|
2509
2542
|
ES2023 = "es2023",
|
|
2543
|
+
ES2024 = "es2024",
|
|
2510
2544
|
ESNext = "esnext",
|
|
2511
2545
|
JSON = "json",
|
|
2512
2546
|
Latest = "esnext",
|
|
@@ -2808,7 +2842,6 @@ declare namespace ts {
|
|
|
2808
2842
|
abstract class Project implements LanguageServiceHost, ModuleResolutionHost {
|
|
2809
2843
|
readonly projectKind: ProjectKind;
|
|
2810
2844
|
readonly projectService: ProjectService;
|
|
2811
|
-
private documentRegistry;
|
|
2812
2845
|
private compilerOptions;
|
|
2813
2846
|
compileOnSaveEnabled: boolean;
|
|
2814
2847
|
protected watchOptions: WatchOptions | undefined;
|
|
@@ -2828,7 +2861,6 @@ declare namespace ts {
|
|
|
2828
2861
|
private lastReportedFileNames;
|
|
2829
2862
|
private lastReportedVersion;
|
|
2830
2863
|
protected projectErrors: Diagnostic[] | undefined;
|
|
2831
|
-
protected isInitialLoadPending: () => boolean;
|
|
2832
2864
|
private typingsCache;
|
|
2833
2865
|
private typingWatchers;
|
|
2834
2866
|
private readonly cancellationToken;
|
|
@@ -2842,14 +2874,14 @@ declare namespace ts {
|
|
|
2842
2874
|
readonly jsDocParsingMode: JSDocParsingMode | undefined;
|
|
2843
2875
|
isKnownTypesPackageName(name: string): boolean;
|
|
2844
2876
|
installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
|
|
2845
|
-
getCompilationSettings():
|
|
2846
|
-
getCompilerOptions():
|
|
2877
|
+
getCompilationSettings(): CompilerOptions;
|
|
2878
|
+
getCompilerOptions(): CompilerOptions;
|
|
2847
2879
|
getNewLine(): string;
|
|
2848
2880
|
getProjectVersion(): string;
|
|
2849
2881
|
getProjectReferences(): readonly ProjectReference[] | undefined;
|
|
2850
2882
|
getScriptFileNames(): string[];
|
|
2851
2883
|
private getOrCreateScriptInfoAndAttachToProject;
|
|
2852
|
-
getScriptKind(fileName: string):
|
|
2884
|
+
getScriptKind(fileName: string): ScriptKind;
|
|
2853
2885
|
getScriptVersion(filename: string): string;
|
|
2854
2886
|
getScriptSnapshot(filename: string): IScriptSnapshot | undefined;
|
|
2855
2887
|
getCancellationToken(): HostCancellationToken;
|
|
@@ -2885,16 +2917,16 @@ declare namespace ts {
|
|
|
2885
2917
|
getProjectName(): string;
|
|
2886
2918
|
protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition;
|
|
2887
2919
|
getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray<string>;
|
|
2888
|
-
getSourceFile(path: Path):
|
|
2920
|
+
getSourceFile(path: Path): SourceFile | undefined;
|
|
2889
2921
|
close(): void;
|
|
2890
2922
|
private detachScriptInfoIfNotRoot;
|
|
2891
2923
|
isClosed(): boolean;
|
|
2892
2924
|
hasRoots(): boolean;
|
|
2893
2925
|
getRootFiles(): NormalizedPath[];
|
|
2894
|
-
getRootScriptInfos():
|
|
2926
|
+
getRootScriptInfos(): ScriptInfo[];
|
|
2895
2927
|
getScriptInfos(): ScriptInfo[];
|
|
2896
2928
|
getExcludedFiles(): readonly NormalizedPath[];
|
|
2897
|
-
getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean):
|
|
2929
|
+
getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): NormalizedPath[];
|
|
2898
2930
|
hasConfigFile(configFilePath: NormalizedPath): boolean;
|
|
2899
2931
|
containsScriptInfo(info: ScriptInfo): boolean;
|
|
2900
2932
|
containsFile(filename: NormalizedPath, requireOpen?: boolean): boolean;
|
|
@@ -2919,19 +2951,18 @@ declare namespace ts {
|
|
|
2919
2951
|
private isValidGeneratedFileWatcher;
|
|
2920
2952
|
private clearGeneratedFileWatch;
|
|
2921
2953
|
getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined;
|
|
2922
|
-
getScriptInfo(uncheckedFileName: string):
|
|
2954
|
+
getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined;
|
|
2923
2955
|
filesToString(writeProjectFileNames: boolean): string;
|
|
2924
2956
|
private filesToStringWorker;
|
|
2925
2957
|
setCompilerOptions(compilerOptions: CompilerOptions): void;
|
|
2926
2958
|
setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
|
|
2927
|
-
getTypeAcquisition():
|
|
2959
|
+
getTypeAcquisition(): TypeAcquisition;
|
|
2928
2960
|
protected removeRoot(info: ScriptInfo): void;
|
|
2929
2961
|
protected enableGlobalPlugins(options: CompilerOptions): void;
|
|
2930
2962
|
protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
|
|
2931
2963
|
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
|
|
2932
2964
|
refreshDiagnostics(): void;
|
|
2933
2965
|
private isDefaultProjectForOpenFiles;
|
|
2934
|
-
private getCompilerOptionsForNoDtsResolutionProject;
|
|
2935
2966
|
}
|
|
2936
2967
|
/**
|
|
2937
2968
|
* If a file is opened and no tsconfig (or jsconfig) is found,
|
|
@@ -2958,7 +2989,7 @@ declare namespace ts {
|
|
|
2958
2989
|
getScriptFileNames(): string[];
|
|
2959
2990
|
getLanguageService(): never;
|
|
2960
2991
|
getHostForAutoImportProvider(): never;
|
|
2961
|
-
getProjectReferences(): readonly
|
|
2992
|
+
getProjectReferences(): readonly ProjectReference[] | undefined;
|
|
2962
2993
|
}
|
|
2963
2994
|
/**
|
|
2964
2995
|
* If a file is opened, the server will look for a tsconfig (or jsconfig)
|
|
@@ -2975,7 +3006,7 @@ declare namespace ts {
|
|
|
2975
3006
|
* @returns: true if set of files in the project stays the same and false - otherwise.
|
|
2976
3007
|
*/
|
|
2977
3008
|
updateGraph(): boolean;
|
|
2978
|
-
getConfigFilePath():
|
|
3009
|
+
getConfigFilePath(): NormalizedPath;
|
|
2979
3010
|
getProjectReferences(): readonly ProjectReference[] | undefined;
|
|
2980
3011
|
updateReferences(refs: readonly ProjectReference[] | undefined): void;
|
|
2981
3012
|
/**
|
|
@@ -2999,14 +3030,14 @@ declare namespace ts {
|
|
|
2999
3030
|
compileOnSaveEnabled: boolean;
|
|
3000
3031
|
excludedFiles: readonly NormalizedPath[];
|
|
3001
3032
|
updateGraph(): boolean;
|
|
3002
|
-
getExcludedFiles(): readonly
|
|
3033
|
+
getExcludedFiles(): readonly NormalizedPath[];
|
|
3003
3034
|
}
|
|
3004
3035
|
function convertFormatOptions(protocolOptions: protocol.FormatCodeSettings): FormatCodeSettings;
|
|
3005
3036
|
function convertCompilerOptions(protocolOptions: protocol.ExternalProjectCompilerOptions): CompilerOptions & protocol.CompileOnSaveMixin;
|
|
3006
3037
|
function convertWatchOptions(protocolOptions: protocol.ExternalProjectCompilerOptions, currentDirectory?: string): WatchOptionsAndErrors | undefined;
|
|
3007
3038
|
function convertTypeAcquisition(protocolOptions: protocol.InferredProjectCompilerOptions): TypeAcquisition | undefined;
|
|
3008
3039
|
function tryConvertScriptKindName(scriptKindName: protocol.ScriptKindName | ScriptKind): ScriptKind;
|
|
3009
|
-
function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind
|
|
3040
|
+
function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind;
|
|
3010
3041
|
const maxProgramSizeForNonTsFiles: number;
|
|
3011
3042
|
const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground";
|
|
3012
3043
|
interface ProjectsUpdatedInBackgroundEvent {
|
|
@@ -3277,6 +3308,7 @@ declare namespace ts {
|
|
|
3277
3308
|
private deleteScriptInfo;
|
|
3278
3309
|
private configFileExists;
|
|
3279
3310
|
private createConfigFileWatcherForParsedConfig;
|
|
3311
|
+
private ensureConfigFileWatcherForProject;
|
|
3280
3312
|
private forEachConfigFileLocation;
|
|
3281
3313
|
private getConfigFileNameForFileFromCache;
|
|
3282
3314
|
private setConfigFileNameForFileInCache;
|
|
@@ -3290,6 +3322,7 @@ declare namespace ts {
|
|
|
3290
3322
|
private updateNonInferredProjectFiles;
|
|
3291
3323
|
private updateRootAndOptionsOfNonInferredProject;
|
|
3292
3324
|
private reloadFileNamesOfParsedConfig;
|
|
3325
|
+
private setProjectForReload;
|
|
3293
3326
|
private clearSemanticCache;
|
|
3294
3327
|
private getOrCreateInferredProjectForProjectRootPathIfEnabled;
|
|
3295
3328
|
private getOrCreateSingleInferredProjectIfEnabled;
|
|
@@ -3336,6 +3369,8 @@ declare namespace ts {
|
|
|
3336
3369
|
private getOrCreateOpenScriptInfo;
|
|
3337
3370
|
private assignProjectToOpenedScriptInfo;
|
|
3338
3371
|
private tryFindDefaultConfiguredProjectForOpenScriptInfo;
|
|
3372
|
+
private isMatchedByConfig;
|
|
3373
|
+
private tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo;
|
|
3339
3374
|
private tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo;
|
|
3340
3375
|
private ensureProjectChildren;
|
|
3341
3376
|
private cleanupConfiguredProjects;
|
|
@@ -3480,9 +3515,11 @@ declare namespace ts {
|
|
|
3480
3515
|
private getDocumentHighlights;
|
|
3481
3516
|
private provideInlayHints;
|
|
3482
3517
|
private mapCode;
|
|
3518
|
+
private getCopilotRelatedInfo;
|
|
3483
3519
|
private setCompilerOptionsForInferredProjects;
|
|
3484
3520
|
private getProjectInfo;
|
|
3485
3521
|
private getProjectInfoWorker;
|
|
3522
|
+
private getDefaultConfiguredProjectInfo;
|
|
3486
3523
|
private getRenameInfo;
|
|
3487
3524
|
private getProjects;
|
|
3488
3525
|
private getDefaultProject;
|
|
@@ -3535,6 +3572,7 @@ declare namespace ts {
|
|
|
3535
3572
|
private getApplicableRefactors;
|
|
3536
3573
|
private getEditsForRefactor;
|
|
3537
3574
|
private getMoveToRefactoringFileSuggestions;
|
|
3575
|
+
private preparePasteEdits;
|
|
3538
3576
|
private getPasteEdits;
|
|
3539
3577
|
private organizeImports;
|
|
3540
3578
|
private getEditsForFileRename;
|
|
@@ -3595,7 +3633,7 @@ declare namespace ts {
|
|
|
3595
3633
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
|
|
3596
3634
|
}
|
|
3597
3635
|
}
|
|
3598
|
-
const versionMajorMinor = "5.
|
|
3636
|
+
const versionMajorMinor = "5.7";
|
|
3599
3637
|
/** The version of the TypeScript compiler release */
|
|
3600
3638
|
const version: string;
|
|
3601
3639
|
/**
|
|
@@ -3983,10 +4021,11 @@ declare namespace ts {
|
|
|
3983
4021
|
JSDocImportTag = 351,
|
|
3984
4022
|
SyntaxList = 352,
|
|
3985
4023
|
NotEmittedStatement = 353,
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
4024
|
+
NotEmittedTypeElement = 354,
|
|
4025
|
+
PartiallyEmittedExpression = 355,
|
|
4026
|
+
CommaListExpression = 356,
|
|
4027
|
+
SyntheticReferenceExpression = 357,
|
|
4028
|
+
Count = 358,
|
|
3990
4029
|
FirstAssignment = 64,
|
|
3991
4030
|
LastAssignment = 79,
|
|
3992
4031
|
FirstCompoundAssignment = 65,
|
|
@@ -5098,7 +5137,7 @@ declare namespace ts {
|
|
|
5098
5137
|
interface InstanceofExpression extends BinaryExpression {
|
|
5099
5138
|
readonly operatorToken: Token<SyntaxKind.InstanceOfKeyword>;
|
|
5100
5139
|
}
|
|
5101
|
-
type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator |
|
|
5140
|
+
type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator | JsxCallLike | InstanceofExpression;
|
|
5102
5141
|
interface AsExpression extends Expression {
|
|
5103
5142
|
readonly kind: SyntaxKind.AsExpression;
|
|
5104
5143
|
readonly expression: Expression;
|
|
@@ -5134,6 +5173,7 @@ declare namespace ts {
|
|
|
5134
5173
|
readonly closingElement: JsxClosingElement;
|
|
5135
5174
|
}
|
|
5136
5175
|
type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement;
|
|
5176
|
+
type JsxCallLike = JsxOpeningLikeElement | JsxOpeningFragment;
|
|
5137
5177
|
type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute;
|
|
5138
5178
|
type JsxAttributeName = Identifier | JsxNamespacedName;
|
|
5139
5179
|
type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess | JsxNamespacedName;
|
|
@@ -5212,6 +5252,9 @@ declare namespace ts {
|
|
|
5212
5252
|
interface NotEmittedStatement extends Statement {
|
|
5213
5253
|
readonly kind: SyntaxKind.NotEmittedStatement;
|
|
5214
5254
|
}
|
|
5255
|
+
interface NotEmittedTypeElement extends TypeElement {
|
|
5256
|
+
readonly kind: SyntaxKind.NotEmittedTypeElement;
|
|
5257
|
+
}
|
|
5215
5258
|
/**
|
|
5216
5259
|
* A list of comma-separated expressions. This node is only created by transformations.
|
|
5217
5260
|
*/
|
|
@@ -6115,7 +6158,7 @@ declare namespace ts {
|
|
|
6115
6158
|
getPrivateIdentifierPropertyOfType(leftType: Type, name: string, location: Node): Symbol | undefined;
|
|
6116
6159
|
getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined;
|
|
6117
6160
|
getIndexInfosOfType(type: Type): readonly IndexInfo[];
|
|
6118
|
-
getIndexInfosOfIndexSymbol: (indexSymbol: Symbol) => IndexInfo[];
|
|
6161
|
+
getIndexInfosOfIndexSymbol: (indexSymbol: Symbol, siblingSymbols?: Symbol[] | undefined) => IndexInfo[];
|
|
6119
6162
|
getSignaturesOfType(type: Type, kind: SignatureKind): readonly Signature[];
|
|
6120
6163
|
getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined;
|
|
6121
6164
|
getBaseTypes(type: InterfaceType): BaseType[];
|
|
@@ -6982,6 +7025,7 @@ declare namespace ts {
|
|
|
6982
7025
|
moduleDetection?: ModuleDetectionKind;
|
|
6983
7026
|
newLine?: NewLineKind;
|
|
6984
7027
|
noEmit?: boolean;
|
|
7028
|
+
noCheck?: boolean;
|
|
6985
7029
|
noEmitHelpers?: boolean;
|
|
6986
7030
|
noEmitOnError?: boolean;
|
|
6987
7031
|
noErrorTruncation?: boolean;
|
|
@@ -7021,6 +7065,7 @@ declare namespace ts {
|
|
|
7021
7065
|
removeComments?: boolean;
|
|
7022
7066
|
resolvePackageJsonExports?: boolean;
|
|
7023
7067
|
resolvePackageJsonImports?: boolean;
|
|
7068
|
+
rewriteRelativeImportExtensions?: boolean;
|
|
7024
7069
|
rootDir?: string;
|
|
7025
7070
|
rootDirs?: string[];
|
|
7026
7071
|
skipLibCheck?: boolean;
|
|
@@ -7131,6 +7176,7 @@ declare namespace ts {
|
|
|
7131
7176
|
ES2021 = 8,
|
|
7132
7177
|
ES2022 = 9,
|
|
7133
7178
|
ES2023 = 10,
|
|
7179
|
+
ES2024 = 11,
|
|
7134
7180
|
ESNext = 99,
|
|
7135
7181
|
JSON = 100,
|
|
7136
7182
|
Latest = 99,
|
|
@@ -7813,6 +7859,7 @@ declare namespace ts {
|
|
|
7813
7859
|
createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlags): SourceFile;
|
|
7814
7860
|
updateSourceFile(node: SourceFile, statements: readonly Statement[], isDeclarationFile?: boolean, referencedFiles?: readonly FileReference[], typeReferences?: readonly FileReference[], hasNoDefaultLib?: boolean, libReferences?: readonly FileReference[]): SourceFile;
|
|
7815
7861
|
createNotEmittedStatement(original: Node): NotEmittedStatement;
|
|
7862
|
+
createNotEmittedTypeElement(): NotEmittedTypeElement;
|
|
7816
7863
|
createPartiallyEmittedExpression(expression: Expression, original?: Node): PartiallyEmittedExpression;
|
|
7817
7864
|
updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression;
|
|
7818
7865
|
createCommaListExpression(elements: readonly Expression[]): CommaListExpression;
|
|
@@ -8694,6 +8741,7 @@ declare namespace ts {
|
|
|
8694
8741
|
function isTypeOnlyImportDeclaration(node: Node): node is TypeOnlyImportDeclaration;
|
|
8695
8742
|
function isTypeOnlyExportDeclaration(node: Node): node is TypeOnlyExportDeclaration;
|
|
8696
8743
|
function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
|
|
8744
|
+
function isPartOfTypeOnlyImportOrExportDeclaration(node: Node): boolean;
|
|
8697
8745
|
function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
|
|
8698
8746
|
function isImportAttributeName(node: Node): node is ImportAttributeName;
|
|
8699
8747
|
function isModifier(node: Node): node is Modifier;
|
|
@@ -8742,6 +8790,7 @@ declare namespace ts {
|
|
|
8742
8790
|
function isJsxAttributeLike(node: Node): node is JsxAttributeLike;
|
|
8743
8791
|
function isStringLiteralOrJsxExpression(node: Node): node is StringLiteral | JsxExpression;
|
|
8744
8792
|
function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement;
|
|
8793
|
+
function isJsxCallLike(node: Node): node is JsxCallLike;
|
|
8745
8794
|
function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause;
|
|
8746
8795
|
/** True if node is of a kind that may contain comment text. */
|
|
8747
8796
|
function isJSDocCommentContainingNode(node: Node): boolean;
|
|
@@ -9120,6 +9169,7 @@ declare namespace ts {
|
|
|
9120
9169
|
jsDocParsingMode?: JSDocParsingMode;
|
|
9121
9170
|
}
|
|
9122
9171
|
function parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => string | undefined): ParsedCommandLine;
|
|
9172
|
+
function parseBuildCommand(commandLine: readonly string[]): ParsedBuildCommand;
|
|
9123
9173
|
/**
|
|
9124
9174
|
* Reads the config file, reports errors if any and exits if the config file cannot be found
|
|
9125
9175
|
*/
|
|
@@ -9174,6 +9224,13 @@ declare namespace ts {
|
|
|
9174
9224
|
options: TypeAcquisition;
|
|
9175
9225
|
errors: Diagnostic[];
|
|
9176
9226
|
};
|
|
9227
|
+
/** Parsed command line for build */
|
|
9228
|
+
interface ParsedBuildCommand {
|
|
9229
|
+
buildOptions: BuildOptions;
|
|
9230
|
+
watchOptions: WatchOptions | undefined;
|
|
9231
|
+
projects: string[];
|
|
9232
|
+
errors: Diagnostic[];
|
|
9233
|
+
}
|
|
9177
9234
|
type DiagnosticReporter = (diagnostic: Diagnostic) => void;
|
|
9178
9235
|
/**
|
|
9179
9236
|
* Reports config file diagnostics
|
|
@@ -9901,6 +9958,8 @@ declare namespace ts {
|
|
|
9901
9958
|
emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined;
|
|
9902
9959
|
}
|
|
9903
9960
|
type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T>;
|
|
9961
|
+
/** Returns true if commandline is --build and needs to be parsed useing parseBuildCommand */
|
|
9962
|
+
function isBuildCommand(commandLineArgs: readonly string[]): boolean;
|
|
9904
9963
|
function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings;
|
|
9905
9964
|
/**
|
|
9906
9965
|
* Represents an immutable snapshot of a script at a specified time.Once acquired, the
|
|
@@ -10175,6 +10234,7 @@ declare namespace ts {
|
|
|
10175
10234
|
uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
|
|
10176
10235
|
getSupportedCodeFixes(fileName?: string): readonly string[];
|
|
10177
10236
|
dispose(): void;
|
|
10237
|
+
preparePasteEditsForFile(fileName: string, copiedTextRanges: TextRange[]): boolean;
|
|
10178
10238
|
getPasteEdits(args: PasteEditsArgs, formatOptions: FormatCodeSettings): PasteEdits;
|
|
10179
10239
|
}
|
|
10180
10240
|
interface JsxClosingTagInfo {
|