@@ -5103,81 +5103,6 @@ declare namespace ts {
5103
5103
}
5104
5104
type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T> | UpdateBundleProject<T>;
5105
5105
}
5106
- declare namespace ts.server {
5107
- type ActionSet = "action::set";
5108
- type ActionInvalidate = "action::invalidate";
5109
- type ActionPackageInstalled = "action::packageInstalled";
5110
- type EventTypesRegistry = "event::typesRegistry";
5111
- type EventBeginInstallTypes = "event::beginInstallTypes";
5112
- type EventEndInstallTypes = "event::endInstallTypes";
5113
- type EventInitializationFailed = "event::initializationFailed";
5114
- }
5115
- declare namespace ts.server {
5116
- interface TypingInstallerResponse {
5117
- readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
5118
- }
5119
- interface TypingInstallerRequestWithProjectName {
5120
- readonly projectName: string;
5121
- }
5122
- interface DiscoverTypings extends TypingInstallerRequestWithProjectName {
5123
- readonly fileNames: string[];
5124
- readonly projectRootPath: Path;
5125
- readonly compilerOptions: CompilerOptions;
5126
- readonly watchOptions?: WatchOptions;
5127
- readonly typeAcquisition: TypeAcquisition;
5128
- readonly unresolvedImports: SortedReadonlyArray<string>;
5129
- readonly cachePath?: string;
5130
- readonly kind: "discover";
5131
- }
5132
- interface CloseProject extends TypingInstallerRequestWithProjectName {
5133
- readonly kind: "closeProject";
5134
- }
5135
- interface TypesRegistryRequest {
5136
- readonly kind: "typesRegistry";
5137
- }
5138
- interface InstallPackageRequest extends TypingInstallerRequestWithProjectName {
5139
- readonly kind: "installPackage";
5140
- readonly fileName: Path;
5141
- readonly packageName: string;
5142
- readonly projectRootPath: Path;
5143
- }
5144
- interface PackageInstalledResponse extends ProjectResponse {
5145
- readonly kind: ActionPackageInstalled;
5146
- readonly success: boolean;
5147
- readonly message: string;
5148
- }
5149
- interface InitializationFailedResponse extends TypingInstallerResponse {
5150
- readonly kind: EventInitializationFailed;
5151
- readonly message: string;
5152
- readonly stack?: string;
5153
- }
5154
- interface ProjectResponse extends TypingInstallerResponse {
5155
- readonly projectName: string;
5156
- }
5157
- interface InvalidateCachedTypings extends ProjectResponse {
5158
- readonly kind: ActionInvalidate;
5159
- }
5160
- interface InstallTypes extends ProjectResponse {
5161
- readonly kind: EventBeginInstallTypes | EventEndInstallTypes;
5162
- readonly eventId: number;
5163
- readonly typingsInstallerVersion: string;
5164
- readonly packagesToInstall: readonly string[];
5165
- }
5166
- interface BeginInstallTypes extends InstallTypes {
5167
- readonly kind: EventBeginInstallTypes;
5168
- }
5169
- interface EndInstallTypes extends InstallTypes {
5170
- readonly kind: EventEndInstallTypes;
5171
- readonly installSuccess: boolean;
5172
- }
5173
- interface SetTypings extends ProjectResponse {
5174
- readonly typeAcquisition: TypeAcquisition;
5175
- readonly compilerOptions: CompilerOptions;
5176
- readonly typings: string[];
5177
- readonly unresolvedImports: SortedReadonlyArray<string>;
5178
- readonly kind: ActionSet;
5179
- }
5180
- }
5181
5106
declare namespace ts {
5182
5107
interface Node {
5183
5108
getSourceFile(): SourceFile;
@@ -6326,6 +6251,81 @@ declare namespace ts {
6326
6251
*/
6327
6252
function transform<T extends Node>(source: T | T[], transformers: TransformerFactory<T>[], compilerOptions?: CompilerOptions): TransformationResult<T>;
6328
6253
}
6254
+ declare namespace ts.server {
6255
+ type ActionSet = "action::set";
6256
+ type ActionInvalidate = "action::invalidate";
6257
+ type ActionPackageInstalled = "action::packageInstalled";
6258
+ type EventTypesRegistry = "event::typesRegistry";
6259
+ type EventBeginInstallTypes = "event::beginInstallTypes";
6260
+ type EventEndInstallTypes = "event::endInstallTypes";
6261
+ type EventInitializationFailed = "event::initializationFailed";
6262
+ }
6263
+ declare namespace ts.server {
6264
+ interface TypingInstallerResponse {
6265
+ readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
6266
+ }
6267
+ interface TypingInstallerRequestWithProjectName {
6268
+ readonly projectName: string;
6269
+ }
6270
+ interface DiscoverTypings extends TypingInstallerRequestWithProjectName {
6271
+ readonly fileNames: string[];
6272
+ readonly projectRootPath: Path;
6273
+ readonly compilerOptions: CompilerOptions;
6274
+ readonly watchOptions?: WatchOptions;
6275
+ readonly typeAcquisition: TypeAcquisition;
6276
+ readonly unresolvedImports: SortedReadonlyArray<string>;
6277
+ readonly cachePath?: string;
6278
+ readonly kind: "discover";
6279
+ }
6280
+ interface CloseProject extends TypingInstallerRequestWithProjectName {
6281
+ readonly kind: "closeProject";
6282
+ }
6283
+ interface TypesRegistryRequest {
6284
+ readonly kind: "typesRegistry";
6285
+ }
6286
+ interface InstallPackageRequest extends TypingInstallerRequestWithProjectName {
6287
+ readonly kind: "installPackage";
6288
+ readonly fileName: Path;
6289
+ readonly packageName: string;
6290
+ readonly projectRootPath: Path;
6291
+ }
6292
+ interface PackageInstalledResponse extends ProjectResponse {
6293
+ readonly kind: ActionPackageInstalled;
6294
+ readonly success: boolean;
6295
+ readonly message: string;
6296
+ }
6297
+ interface InitializationFailedResponse extends TypingInstallerResponse {
6298
+ readonly kind: EventInitializationFailed;
6299
+ readonly message: string;
6300
+ readonly stack?: string;
6301
+ }
6302
+ interface ProjectResponse extends TypingInstallerResponse {
6303
+ readonly projectName: string;
6304
+ }
6305
+ interface InvalidateCachedTypings extends ProjectResponse {
6306
+ readonly kind: ActionInvalidate;
6307
+ }
6308
+ interface InstallTypes extends ProjectResponse {
6309
+ readonly kind: EventBeginInstallTypes | EventEndInstallTypes;
6310
+ readonly eventId: number;
6311
+ readonly typingsInstallerVersion: string;
6312
+ readonly packagesToInstall: readonly string[];
6313
+ }
6314
+ interface BeginInstallTypes extends InstallTypes {
6315
+ readonly kind: EventBeginInstallTypes;
6316
+ }
6317
+ interface EndInstallTypes extends InstallTypes {
6318
+ readonly kind: EventEndInstallTypes;
6319
+ readonly installSuccess: boolean;
6320
+ }
6321
+ interface SetTypings extends ProjectResponse {
6322
+ readonly typeAcquisition: TypeAcquisition;
6323
+ readonly compilerOptions: CompilerOptions;
6324
+ readonly typings: string[];
6325
+ readonly unresolvedImports: SortedReadonlyArray<string>;
6326
+ readonly kind: ActionSet;
6327
+ }
6328
+ }
6329
6329
declare namespace ts.server {
6330
6330
interface CompressedData {
6331
6331
length: number;
@@ -10662,6 +10662,8 @@ declare namespace ts {
10662
10662
/** @deprecated Use `isTypeAssertionExpression` instead. */
10663
10663
const isTypeAssertion: (node: Node) => node is TypeAssertion;
10664
10664
}
10665
+ declare namespace ts.server {
10666
+ }
10665
10667
10666
10668
export = ts;
10667
10669
export as namespace ts;
0 commit comments