Skip to content

Commit 06c739c

Browse files
committed
Move types into same file as consts
1 parent 99379fb commit 06c739c

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/jsTyping/shared.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
/* @internal */
22
namespace ts.server {
3+
export type ActionSet = "action::set";
4+
export type ActionInvalidate = "action::invalidate";
5+
export type ActionPackageInstalled = "action::packageInstalled";
6+
export type EventTypesRegistry = "event::typesRegistry";
7+
export type EventBeginInstallTypes = "event::beginInstallTypes";
8+
export type EventEndInstallTypes = "event::endInstallTypes";
9+
export type EventInitializationFailed = "event::initializationFailed";
310
export const ActionSet: ActionSet = "action::set";
411
export const ActionInvalidate: ActionInvalidate = "action::invalidate";
512
export const ActionPackageInstalled: ActionPackageInstalled = "action::packageInstalled";

src/jsTyping/types.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
declare namespace ts.server {
2-
export type ActionSet = "action::set";
3-
export type ActionInvalidate = "action::invalidate";
4-
export type ActionPackageInstalled = "action::packageInstalled";
5-
export type EventTypesRegistry = "event::typesRegistry";
6-
export type EventBeginInstallTypes = "event::beginInstallTypes";
7-
export type EventEndInstallTypes = "event::endInstallTypes";
8-
export type EventInitializationFailed = "event::initializationFailed";
9-
102
export interface TypingInstallerResponse {
113
readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
124
}

0 commit comments

Comments
 (0)