@typescript/native-preview 7.0.0-dev.20260422.1 → 7.0.0-dev.20260424.1
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/dist/api/async/api.d.ts +241 -0
- package/dist/api/async/api.d.ts.map +1 -0
- package/dist/api/async/api.js +810 -0
- package/dist/api/async/api.js.map +1 -0
- package/dist/api/async/client.d.ts +22 -0
- package/dist/api/async/client.d.ts.map +1 -0
- package/dist/api/async/client.js +140 -0
- package/dist/api/async/client.js.map +1 -0
- package/dist/api/async/types.d.ts +179 -0
- package/dist/api/async/types.d.ts.map +1 -0
- package/dist/api/async/types.js +2 -0
- package/dist/api/async/types.js.map +1 -0
- package/dist/api/fs.d.ts +23 -0
- package/dist/api/fs.d.ts.map +1 -0
- package/dist/api/fs.js +109 -0
- package/dist/api/fs.js.map +1 -0
- package/dist/api/node/encoder.d.ts +15 -0
- package/dist/api/node/encoder.d.ts.map +1 -0
- package/dist/api/node/encoder.generated.d.ts +5 -0
- package/dist/api/node/encoder.generated.d.ts.map +1 -0
- package/dist/api/node/encoder.generated.js +74 -0
- package/dist/api/node/encoder.generated.js.map +1 -0
- package/dist/api/node/encoder.js +304 -0
- package/dist/api/node/encoder.js.map +1 -0
- package/dist/api/node/msgpack.d.ts +32 -0
- package/dist/api/node/msgpack.d.ts.map +1 -0
- package/dist/api/node/msgpack.js +212 -0
- package/dist/api/node/msgpack.js.map +1 -0
- package/dist/api/node/node.d.ts +63 -0
- package/dist/api/node/node.d.ts.map +1 -0
- package/dist/api/node/node.generated.d.ts +172 -0
- package/dist/api/node/node.generated.d.ts.map +1 -0
- package/dist/api/node/node.generated.js +817 -0
- package/dist/api/node/node.generated.js.map +1 -0
- package/dist/api/node/node.infrastructure.d.ts +51 -0
- package/dist/api/node/node.infrastructure.d.ts.map +1 -0
- package/dist/api/node/node.infrastructure.js +122 -0
- package/dist/api/node/node.infrastructure.js.map +1 -0
- package/dist/api/node/node.js +201 -0
- package/dist/api/node/node.js.map +1 -0
- package/dist/api/node/protocol.d.ts +29 -0
- package/dist/api/node/protocol.d.ts.map +1 -0
- package/dist/api/node/protocol.generated.d.ts +4 -0
- package/dist/api/node/protocol.generated.d.ts.map +1 -0
- package/dist/api/node/protocol.generated.js +241 -0
- package/dist/api/node/protocol.generated.js.map +1 -0
- package/dist/api/node/protocol.js +30 -0
- package/dist/api/node/protocol.js.map +1 -0
- package/dist/api/objectRegistry.d.ts +38 -0
- package/dist/api/objectRegistry.d.ts.map +1 -0
- package/dist/api/objectRegistry.js +55 -0
- package/dist/api/objectRegistry.js.map +1 -0
- package/dist/api/options.d.ts +24 -0
- package/dist/api/options.d.ts.map +1 -0
- package/dist/api/options.js +11 -0
- package/dist/api/options.js.map +1 -0
- package/dist/api/path.d.ts +110 -0
- package/dist/api/path.d.ts.map +1 -0
- package/dist/api/path.js +508 -0
- package/dist/api/path.js.map +1 -0
- package/dist/api/proto.d.ts +152 -0
- package/dist/api/proto.d.ts.map +1 -0
- package/dist/api/proto.js +22 -0
- package/dist/api/proto.js.map +1 -0
- package/dist/api/sourceFileCache.d.ts +79 -0
- package/dist/api/sourceFileCache.d.ts.map +1 -0
- package/dist/api/sourceFileCache.js +169 -0
- package/dist/api/sourceFileCache.js.map +1 -0
- package/dist/api/sync/api.d.ts +241 -0
- package/dist/api/sync/api.d.ts.map +1 -0
- package/dist/api/sync/api.js +818 -0
- package/dist/api/sync/api.js.map +1 -0
- package/dist/api/sync/client.d.ts +13 -0
- package/dist/api/sync/client.d.ts.map +1 -0
- package/dist/api/sync/client.js +72 -0
- package/dist/api/sync/client.js.map +1 -0
- package/dist/api/sync/types.d.ts +179 -0
- package/dist/api/sync/types.d.ts.map +1 -0
- package/dist/api/sync/types.js +2 -0
- package/dist/api/sync/types.js.map +1 -0
- package/dist/api/syncChannel.d.ts +111 -0
- package/dist/api/syncChannel.d.ts.map +1 -0
- package/dist/api/syncChannel.js +488 -0
- package/dist/api/syncChannel.js.map +1 -0
- package/dist/ast/ast.d.ts +66 -0
- package/dist/ast/ast.d.ts.map +1 -0
- package/dist/ast/ast.generated.d.ts +1160 -0
- package/dist/ast/ast.generated.d.ts.map +1 -0
- package/dist/ast/ast.generated.js +4 -0
- package/dist/ast/ast.generated.js.map +1 -0
- package/dist/ast/ast.js +7 -0
- package/dist/ast/ast.js.map +1 -0
- package/dist/ast/astnav.d.ts +19 -0
- package/dist/ast/astnav.d.ts.map +1 -0
- package/dist/ast/astnav.js +596 -0
- package/dist/ast/astnav.js.map +1 -0
- package/dist/ast/clone.d.ts +16 -0
- package/dist/ast/clone.d.ts.map +1 -0
- package/dist/ast/clone.js +104 -0
- package/dist/ast/clone.js.map +1 -0
- package/dist/ast/factory.generated.d.ts +513 -0
- package/dist/ast/factory.generated.d.ts.map +1 -0
- package/dist/ast/factory.generated.js +3026 -0
- package/dist/ast/factory.generated.js.map +1 -0
- package/dist/ast/index.d.ts +18 -0
- package/dist/ast/index.d.ts.map +1 -0
- package/dist/ast/index.js +18 -0
- package/dist/ast/index.js.map +1 -0
- package/dist/ast/is.d.ts +34 -0
- package/dist/ast/is.d.ts.map +1 -0
- package/dist/ast/is.generated.d.ts +328 -0
- package/dist/ast/is.generated.d.ts.map +1 -0
- package/dist/ast/is.generated.js +1101 -0
- package/dist/ast/is.generated.js.map +1 -0
- package/dist/ast/is.js +226 -0
- package/dist/ast/is.js.map +1 -0
- package/dist/ast/scanner.d.ts +97 -0
- package/dist/ast/scanner.d.ts.map +1 -0
- package/dist/ast/scanner.js +2230 -0
- package/dist/ast/scanner.js.map +1 -0
- package/dist/ast/utils.d.ts +5 -0
- package/dist/ast/utils.d.ts.map +1 -0
- package/dist/ast/utils.js +27 -0
- package/dist/ast/utils.js.map +1 -0
- package/dist/ast/visitor.d.ts +14 -0
- package/dist/ast/visitor.d.ts.map +1 -0
- package/dist/ast/visitor.generated.d.ts +50 -0
- package/dist/ast/visitor.generated.d.ts.map +1 -0
- package/dist/ast/visitor.generated.js +978 -0
- package/dist/ast/visitor.generated.js.map +1 -0
- package/dist/ast/visitor.js +47 -0
- package/dist/ast/visitor.js.map +1 -0
- package/dist/enums/characterCodes.d.ts +2 -0
- package/dist/enums/characterCodes.d.ts.map +1 -0
- package/dist/enums/characterCodes.enum.d.ts +129 -0
- package/dist/enums/characterCodes.enum.d.ts.map +1 -0
- package/dist/enums/characterCodes.enum.js +132 -0
- package/dist/enums/characterCodes.enum.js.map +1 -0
- package/dist/enums/characterCodes.js +130 -0
- package/dist/enums/characterCodes.js.map +1 -0
- package/dist/enums/commentDirectiveType.d.ts +2 -0
- package/dist/enums/commentDirectiveType.d.ts.map +1 -0
- package/dist/enums/commentDirectiveType.enum.d.ts +5 -0
- package/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
- package/dist/enums/commentDirectiveType.enum.js +6 -0
- package/dist/enums/commentDirectiveType.enum.js.map +1 -0
- package/dist/enums/commentDirectiveType.js +6 -0
- package/dist/enums/commentDirectiveType.js.map +1 -0
- package/dist/enums/diagnosticCategory.d.ts +2 -0
- package/dist/enums/diagnosticCategory.d.ts.map +1 -0
- package/dist/enums/diagnosticCategory.enum.d.ts +7 -0
- package/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
- package/dist/enums/diagnosticCategory.enum.js +9 -0
- package/dist/enums/diagnosticCategory.enum.js.map +1 -0
- package/dist/enums/diagnosticCategory.js +9 -0
- package/dist/enums/diagnosticCategory.js.map +1 -0
- package/dist/enums/elementFlags.d.ts +2 -0
- package/dist/enums/elementFlags.d.ts.map +1 -0
- package/dist/enums/elementFlags.enum.d.ts +12 -0
- package/dist/enums/elementFlags.enum.d.ts.map +1 -0
- package/dist/enums/elementFlags.enum.js +14 -0
- package/dist/enums/elementFlags.enum.js.map +1 -0
- package/dist/enums/elementFlags.js +14 -0
- package/dist/enums/elementFlags.js.map +1 -0
- package/dist/enums/languageVariant.d.ts +2 -0
- package/dist/enums/languageVariant.d.ts.map +1 -0
- package/dist/enums/languageVariant.enum.d.ts +5 -0
- package/dist/enums/languageVariant.enum.d.ts.map +1 -0
- package/dist/enums/languageVariant.enum.js +6 -0
- package/dist/enums/languageVariant.enum.js.map +1 -0
- package/dist/enums/languageVariant.js +6 -0
- package/dist/enums/languageVariant.js.map +1 -0
- package/dist/enums/modifierFlags.d.ts +2 -0
- package/dist/enums/modifierFlags.d.ts.map +1 -0
- package/dist/enums/modifierFlags.enum.d.ts +42 -0
- package/dist/enums/modifierFlags.enum.d.ts.map +1 -0
- package/dist/enums/modifierFlags.enum.js +44 -0
- package/dist/enums/modifierFlags.enum.js.map +1 -0
- package/dist/enums/modifierFlags.js +44 -0
- package/dist/enums/modifierFlags.js.map +1 -0
- package/dist/enums/nodeFlags.d.ts +2 -0
- package/dist/enums/nodeFlags.d.ts.map +1 -0
- package/dist/enums/nodeFlags.enum.d.ts +41 -0
- package/dist/enums/nodeFlags.enum.d.ts.map +1 -0
- package/dist/enums/nodeFlags.enum.js +43 -0
- package/dist/enums/nodeFlags.enum.js.map +1 -0
- package/dist/enums/nodeFlags.js +43 -0
- package/dist/enums/nodeFlags.js.map +1 -0
- package/dist/enums/objectFlags.d.ts +2 -0
- package/dist/enums/objectFlags.d.ts.map +1 -0
- package/dist/enums/objectFlags.enum.d.ts +49 -0
- package/dist/enums/objectFlags.enum.d.ts.map +1 -0
- package/dist/enums/objectFlags.enum.js +51 -0
- package/dist/enums/objectFlags.enum.js.map +1 -0
- package/dist/enums/objectFlags.js +51 -0
- package/dist/enums/objectFlags.js.map +1 -0
- package/dist/enums/outerExpressionKinds.d.ts +2 -0
- package/dist/enums/outerExpressionKinds.d.ts.map +1 -0
- package/dist/enums/outerExpressionKinds.enum.d.ts +12 -0
- package/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
- package/dist/enums/outerExpressionKinds.enum.js +14 -0
- package/dist/enums/outerExpressionKinds.enum.js.map +1 -0
- package/dist/enums/outerExpressionKinds.js +14 -0
- package/dist/enums/outerExpressionKinds.js.map +1 -0
- package/dist/enums/regularExpressionFlags.d.ts +2 -0
- package/dist/enums/regularExpressionFlags.d.ts.map +1 -0
- package/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
- package/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
- package/dist/enums/regularExpressionFlags.enum.js +14 -0
- package/dist/enums/regularExpressionFlags.enum.js.map +1 -0
- package/dist/enums/regularExpressionFlags.js +14 -0
- package/dist/enums/regularExpressionFlags.js.map +1 -0
- package/dist/enums/scriptKind.d.ts +2 -0
- package/dist/enums/scriptKind.d.ts.map +1 -0
- package/dist/enums/scriptKind.enum.d.ts +11 -0
- package/dist/enums/scriptKind.enum.d.ts.map +1 -0
- package/dist/enums/scriptKind.enum.js +12 -0
- package/dist/enums/scriptKind.enum.js.map +1 -0
- package/dist/enums/scriptKind.js +12 -0
- package/dist/enums/scriptKind.js.map +1 -0
- package/dist/enums/scriptTarget.d.ts +2 -0
- package/dist/enums/scriptTarget.d.ts.map +1 -0
- package/dist/enums/scriptTarget.enum.d.ts +17 -0
- package/dist/enums/scriptTarget.enum.d.ts.map +1 -0
- package/dist/enums/scriptTarget.enum.js +18 -0
- package/dist/enums/scriptTarget.enum.js.map +1 -0
- package/dist/enums/scriptTarget.js +18 -0
- package/dist/enums/scriptTarget.js.map +1 -0
- package/dist/enums/signatureFlags.d.ts +2 -0
- package/dist/enums/signatureFlags.d.ts.map +1 -0
- package/dist/enums/signatureFlags.enum.d.ts +15 -0
- package/dist/enums/signatureFlags.enum.d.ts.map +1 -0
- package/dist/enums/signatureFlags.enum.js +17 -0
- package/dist/enums/signatureFlags.enum.js.map +1 -0
- package/dist/enums/signatureFlags.js +17 -0
- package/dist/enums/signatureFlags.js.map +1 -0
- package/dist/enums/signatureKind.d.ts +2 -0
- package/dist/enums/signatureKind.d.ts.map +1 -0
- package/dist/enums/signatureKind.enum.d.ts +5 -0
- package/dist/enums/signatureKind.enum.d.ts.map +1 -0
- package/dist/enums/signatureKind.enum.js +7 -0
- package/dist/enums/signatureKind.enum.js.map +1 -0
- package/dist/enums/signatureKind.js +7 -0
- package/dist/enums/signatureKind.js.map +1 -0
- package/dist/enums/symbolFlags.d.ts +2 -0
- package/dist/enums/symbolFlags.d.ts.map +1 -0
- package/dist/enums/symbolFlags.enum.d.ts +71 -0
- package/dist/enums/symbolFlags.enum.d.ts.map +1 -0
- package/dist/enums/symbolFlags.enum.js +73 -0
- package/dist/enums/symbolFlags.enum.js.map +1 -0
- package/dist/enums/symbolFlags.js +73 -0
- package/dist/enums/symbolFlags.js.map +1 -0
- package/dist/enums/syntaxKind.d.ts +2 -0
- package/dist/enums/syntaxKind.d.ts.map +1 -0
- package/dist/enums/syntaxKind.enum.d.ts +389 -0
- package/dist/enums/syntaxKind.enum.d.ts.map +1 -0
- package/dist/enums/syntaxKind.enum.js +391 -0
- package/dist/enums/syntaxKind.enum.js.map +1 -0
- package/dist/enums/syntaxKind.js +391 -0
- package/dist/enums/syntaxKind.js.map +1 -0
- package/dist/enums/tokenFlags.d.ts +2 -0
- package/dist/enums/tokenFlags.d.ts.map +1 -0
- package/dist/enums/tokenFlags.enum.d.ts +30 -0
- package/dist/enums/tokenFlags.enum.d.ts.map +1 -0
- package/dist/enums/tokenFlags.enum.js +32 -0
- package/dist/enums/tokenFlags.enum.js.map +1 -0
- package/dist/enums/tokenFlags.js +32 -0
- package/dist/enums/tokenFlags.js.map +1 -0
- package/dist/enums/typeFlags.d.ts +2 -0
- package/dist/enums/typeFlags.d.ts.map +1 -0
- package/dist/enums/typeFlags.enum.d.ts +76 -0
- package/dist/enums/typeFlags.enum.d.ts.map +1 -0
- package/dist/enums/typeFlags.enum.js +78 -0
- package/dist/enums/typeFlags.enum.js.map +1 -0
- package/dist/enums/typeFlags.js +78 -0
- package/dist/enums/typeFlags.js.map +1 -0
- package/dist/enums/typePredicateKind.d.ts +2 -0
- package/dist/enums/typePredicateKind.d.ts.map +1 -0
- package/dist/enums/typePredicateKind.enum.d.ts +7 -0
- package/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
- package/dist/enums/typePredicateKind.enum.js +9 -0
- package/dist/enums/typePredicateKind.enum.js.map +1 -0
- package/dist/enums/typePredicateKind.js +9 -0
- package/dist/enums/typePredicateKind.js.map +1 -0
- package/lib/getExePath.d.ts +2 -0
- package/package.json +57 -12
- package/vendor/vscode-jsonrpc/README.md +69 -0
- package/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
- package/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
- package/vendor/vscode-jsonrpc/lib/browser/ril.js +203 -0
- package/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
- package/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
- package/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
- package/vendor/vscode-jsonrpc/lib/common/connection.js +1272 -0
- package/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
- package/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
- package/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/vendor/vscode-jsonrpc/lib/common/events.js +136 -0
- package/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
- package/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
- package/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
- package/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
- package/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
- package/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
- package/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
- package/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
- package/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
- package/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
- package/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
- package/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
- package/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
- package/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
- package/vendor/vscode-jsonrpc/package.json +54 -0
- package/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
/// <reference path="../../typings/thenable.d.ts" preserve="true" />
|
|
2
|
+
import { Message, RequestMessage, RequestType, RequestType0, RequestType1, RequestType2, RequestType3, RequestType4, RequestType5, RequestType6, RequestType7, RequestType8, RequestType9, ResponseMessage, ResponseError, NotificationMessage, NotificationType, NotificationType0, NotificationType1, NotificationType2, NotificationType3, NotificationType4, NotificationType5, NotificationType6, NotificationType7, NotificationType8, NotificationType9, _EM, ParameterStructures } from './messages';
|
|
3
|
+
import type { Disposable } from './disposable';
|
|
4
|
+
import { Event } from './events';
|
|
5
|
+
import { CancellationToken, AbstractCancellationTokenSource } from './cancellation';
|
|
6
|
+
import { MessageReader } from './messageReader';
|
|
7
|
+
import { MessageWriter } from './messageWriter';
|
|
8
|
+
export type ProgressToken = number | string;
|
|
9
|
+
export declare namespace ProgressToken {
|
|
10
|
+
function is(value: any): value is number | string;
|
|
11
|
+
}
|
|
12
|
+
interface ProgressParams<T> {
|
|
13
|
+
/**
|
|
14
|
+
* The progress token provided by the client or server.
|
|
15
|
+
*/
|
|
16
|
+
token: ProgressToken;
|
|
17
|
+
/**
|
|
18
|
+
* The progress data.
|
|
19
|
+
*/
|
|
20
|
+
value: T;
|
|
21
|
+
}
|
|
22
|
+
export declare class ProgressType<PR> {
|
|
23
|
+
/**
|
|
24
|
+
* Clients must not use these properties. They are here to ensure correct typing.
|
|
25
|
+
* in TypeScript
|
|
26
|
+
*/
|
|
27
|
+
readonly __: [PR, _EM] | undefined;
|
|
28
|
+
readonly _pr: PR | undefined;
|
|
29
|
+
constructor();
|
|
30
|
+
}
|
|
31
|
+
export type RequestParam<P> = P extends null ? P | undefined : P;
|
|
32
|
+
export type HandlerResult<R, E, _R = R extends null ? (R | undefined | void) : R> = _R | ResponseError<E> | Thenable<_R> | Thenable<ResponseError<E>> | Thenable<_R | ResponseError<E>>;
|
|
33
|
+
export interface StarRequestHandler {
|
|
34
|
+
(method: string, params: any[] | object | undefined, token: CancellationToken): HandlerResult<any, any>;
|
|
35
|
+
}
|
|
36
|
+
export interface GenericRequestHandler<R, E> {
|
|
37
|
+
(...params: any[]): HandlerResult<R, E>;
|
|
38
|
+
}
|
|
39
|
+
export interface RequestHandler0<R, E> {
|
|
40
|
+
(token: CancellationToken): HandlerResult<R, E>;
|
|
41
|
+
}
|
|
42
|
+
export interface RequestHandler<P, R, E> {
|
|
43
|
+
(params: P, token: CancellationToken): HandlerResult<R, E>;
|
|
44
|
+
}
|
|
45
|
+
export interface RequestHandler1<P1, R, E> {
|
|
46
|
+
(p1: P1, token: CancellationToken): HandlerResult<R, E>;
|
|
47
|
+
}
|
|
48
|
+
export interface RequestHandler2<P1, P2, R, E> {
|
|
49
|
+
(p1: P1, p2: P2, token: CancellationToken): HandlerResult<R, E>;
|
|
50
|
+
}
|
|
51
|
+
export interface RequestHandler3<P1, P2, P3, R, E> {
|
|
52
|
+
(p1: P1, p2: P2, p3: P3, token: CancellationToken): HandlerResult<R, E>;
|
|
53
|
+
}
|
|
54
|
+
export interface RequestHandler4<P1, P2, P3, P4, R, E> {
|
|
55
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, token: CancellationToken): HandlerResult<R, E>;
|
|
56
|
+
}
|
|
57
|
+
export interface RequestHandler5<P1, P2, P3, P4, P5, R, E> {
|
|
58
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, token: CancellationToken): HandlerResult<R, E>;
|
|
59
|
+
}
|
|
60
|
+
export interface RequestHandler6<P1, P2, P3, P4, P5, P6, R, E> {
|
|
61
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, token: CancellationToken): HandlerResult<R, E>;
|
|
62
|
+
}
|
|
63
|
+
export interface RequestHandler7<P1, P2, P3, P4, P5, P6, P7, R, E> {
|
|
64
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, token: CancellationToken): HandlerResult<R, E>;
|
|
65
|
+
}
|
|
66
|
+
export interface RequestHandler8<P1, P2, P3, P4, P5, P6, P7, P8, R, E> {
|
|
67
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, token: CancellationToken): HandlerResult<R, E>;
|
|
68
|
+
}
|
|
69
|
+
export interface RequestHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E> {
|
|
70
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, token: CancellationToken): HandlerResult<R, E>;
|
|
71
|
+
}
|
|
72
|
+
export type NotificationResult = void | Promise<void>;
|
|
73
|
+
export interface StarNotificationHandler {
|
|
74
|
+
(method: string, params: any[] | object | undefined): NotificationResult;
|
|
75
|
+
}
|
|
76
|
+
export interface GenericNotificationHandler {
|
|
77
|
+
(...params: any[]): NotificationResult;
|
|
78
|
+
}
|
|
79
|
+
export interface NotificationHandler0 {
|
|
80
|
+
(): NotificationResult;
|
|
81
|
+
}
|
|
82
|
+
export interface NotificationHandler<P> {
|
|
83
|
+
(params: P): NotificationResult;
|
|
84
|
+
}
|
|
85
|
+
export interface NotificationHandler1<P1> {
|
|
86
|
+
(p1: P1): NotificationResult;
|
|
87
|
+
}
|
|
88
|
+
export interface NotificationHandler2<P1, P2> {
|
|
89
|
+
(p1: P1, p2: P2): NotificationResult;
|
|
90
|
+
}
|
|
91
|
+
export interface NotificationHandler3<P1, P2, P3> {
|
|
92
|
+
(p1: P1, p2: P2, p3: P3): NotificationResult;
|
|
93
|
+
}
|
|
94
|
+
export interface NotificationHandler4<P1, P2, P3, P4> {
|
|
95
|
+
(p1: P1, p2: P2, p3: P3, p4: P4): NotificationResult;
|
|
96
|
+
}
|
|
97
|
+
export interface NotificationHandler5<P1, P2, P3, P4, P5> {
|
|
98
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5): NotificationResult;
|
|
99
|
+
}
|
|
100
|
+
export interface NotificationHandler6<P1, P2, P3, P4, P5, P6> {
|
|
101
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6): NotificationResult;
|
|
102
|
+
}
|
|
103
|
+
export interface NotificationHandler7<P1, P2, P3, P4, P5, P6, P7> {
|
|
104
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7): NotificationResult;
|
|
105
|
+
}
|
|
106
|
+
export interface NotificationHandler8<P1, P2, P3, P4, P5, P6, P7, P8> {
|
|
107
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8): NotificationResult;
|
|
108
|
+
}
|
|
109
|
+
export interface NotificationHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9> {
|
|
110
|
+
(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9): NotificationResult;
|
|
111
|
+
}
|
|
112
|
+
export interface Logger {
|
|
113
|
+
error(message: string): void;
|
|
114
|
+
warn(message: string): void;
|
|
115
|
+
info(message: string): void;
|
|
116
|
+
log(message: string): void;
|
|
117
|
+
}
|
|
118
|
+
export declare const NullLogger: Logger;
|
|
119
|
+
export declare enum Trace {
|
|
120
|
+
Off = 0,
|
|
121
|
+
Messages = 1,
|
|
122
|
+
Compact = 2,
|
|
123
|
+
Verbose = 3
|
|
124
|
+
}
|
|
125
|
+
export declare namespace TraceValue {
|
|
126
|
+
/**
|
|
127
|
+
* Turn tracing off.
|
|
128
|
+
*/
|
|
129
|
+
const Off: 'off';
|
|
130
|
+
/**
|
|
131
|
+
* Trace messages only.
|
|
132
|
+
*/
|
|
133
|
+
const Messages: 'messages';
|
|
134
|
+
/**
|
|
135
|
+
* Compact message tracing.
|
|
136
|
+
*/
|
|
137
|
+
const Compact: 'compact';
|
|
138
|
+
/**
|
|
139
|
+
* Verbose message tracing.
|
|
140
|
+
*/
|
|
141
|
+
const Verbose: 'verbose';
|
|
142
|
+
}
|
|
143
|
+
export type TraceValue = 'off' | 'messages' | 'compact' | 'verbose';
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated Use TraceValue instead
|
|
146
|
+
*/
|
|
147
|
+
export declare const TraceValues: typeof TraceValue;
|
|
148
|
+
export type TraceValues = TraceValue;
|
|
149
|
+
export declare namespace Trace {
|
|
150
|
+
function fromString(value: string): Trace;
|
|
151
|
+
function toString(value: Trace): TraceValue;
|
|
152
|
+
}
|
|
153
|
+
export declare enum TraceFormat {
|
|
154
|
+
Text = "text",
|
|
155
|
+
JSON = "json"
|
|
156
|
+
}
|
|
157
|
+
export declare namespace TraceFormat {
|
|
158
|
+
function fromString(value: string): TraceFormat;
|
|
159
|
+
}
|
|
160
|
+
export interface TraceOptions {
|
|
161
|
+
sendNotification?: boolean;
|
|
162
|
+
traceFormat?: TraceFormat;
|
|
163
|
+
}
|
|
164
|
+
export interface SetTraceParams {
|
|
165
|
+
value: TraceValue;
|
|
166
|
+
}
|
|
167
|
+
export declare namespace SetTraceNotification {
|
|
168
|
+
const type: NotificationType<SetTraceParams>;
|
|
169
|
+
}
|
|
170
|
+
export interface LogTraceParams {
|
|
171
|
+
message: string;
|
|
172
|
+
verbose?: string;
|
|
173
|
+
}
|
|
174
|
+
export declare namespace LogTraceNotification {
|
|
175
|
+
const type: NotificationType<LogTraceParams>;
|
|
176
|
+
}
|
|
177
|
+
export interface Tracer {
|
|
178
|
+
log(dataObject: any): void;
|
|
179
|
+
log(message: string, data?: string): void;
|
|
180
|
+
}
|
|
181
|
+
export declare enum ConnectionErrors {
|
|
182
|
+
/**
|
|
183
|
+
* The connection is closed.
|
|
184
|
+
*/
|
|
185
|
+
Closed = 1,
|
|
186
|
+
/**
|
|
187
|
+
* The connection got disposed.
|
|
188
|
+
*/
|
|
189
|
+
Disposed = 2,
|
|
190
|
+
/**
|
|
191
|
+
* The connection is already in listening mode.
|
|
192
|
+
*/
|
|
193
|
+
AlreadyListening = 3
|
|
194
|
+
}
|
|
195
|
+
export declare class ConnectionError extends Error {
|
|
196
|
+
readonly code: ConnectionErrors;
|
|
197
|
+
constructor(code: ConnectionErrors, message: string);
|
|
198
|
+
}
|
|
199
|
+
export type ConnectionStrategy = {
|
|
200
|
+
cancelUndispatched?: (message: Message, next: (message: Message) => ResponseMessage | undefined) => ResponseMessage | undefined;
|
|
201
|
+
};
|
|
202
|
+
export declare namespace ConnectionStrategy {
|
|
203
|
+
function is(value: any): value is ConnectionStrategy;
|
|
204
|
+
}
|
|
205
|
+
export type CancellationId = number | string;
|
|
206
|
+
export interface IdCancellationReceiverStrategy {
|
|
207
|
+
kind?: 'id';
|
|
208
|
+
/**
|
|
209
|
+
* Creates a CancellationTokenSource from a cancellation id.
|
|
210
|
+
*
|
|
211
|
+
* @param id The cancellation id.
|
|
212
|
+
*/
|
|
213
|
+
createCancellationTokenSource(id: CancellationId): AbstractCancellationTokenSource;
|
|
214
|
+
/**
|
|
215
|
+
* An optional method to dispose the strategy.
|
|
216
|
+
*/
|
|
217
|
+
dispose?(): void;
|
|
218
|
+
}
|
|
219
|
+
export declare namespace IdCancellationReceiverStrategy {
|
|
220
|
+
function is(value: any): value is IdCancellationReceiverStrategy;
|
|
221
|
+
}
|
|
222
|
+
export interface RequestCancellationReceiverStrategy {
|
|
223
|
+
kind: 'request';
|
|
224
|
+
/**
|
|
225
|
+
* Create a cancellation token source from a given request message.
|
|
226
|
+
*
|
|
227
|
+
* @param requestMessage The request message.
|
|
228
|
+
*/
|
|
229
|
+
createCancellationTokenSource(requestMessage: RequestMessage): AbstractCancellationTokenSource;
|
|
230
|
+
/**
|
|
231
|
+
* An optional method to dispose the strategy.
|
|
232
|
+
*/
|
|
233
|
+
dispose?(): void;
|
|
234
|
+
}
|
|
235
|
+
export declare namespace RequestCancellationReceiverStrategy {
|
|
236
|
+
function is(value: any): value is RequestCancellationReceiverStrategy;
|
|
237
|
+
}
|
|
238
|
+
export type CancellationReceiverStrategy = IdCancellationReceiverStrategy | RequestCancellationReceiverStrategy;
|
|
239
|
+
export declare namespace CancellationReceiverStrategy {
|
|
240
|
+
const Message: CancellationReceiverStrategy;
|
|
241
|
+
function is(value: any): value is CancellationReceiverStrategy;
|
|
242
|
+
}
|
|
243
|
+
export interface CancellationSenderStrategy {
|
|
244
|
+
/**
|
|
245
|
+
* Hook to enable cancellation for the given request.
|
|
246
|
+
*
|
|
247
|
+
* @param request The request to enable cancellation for.
|
|
248
|
+
*/
|
|
249
|
+
enableCancellation?(request: RequestMessage): void;
|
|
250
|
+
/**
|
|
251
|
+
* Send cancellation for the given cancellation id
|
|
252
|
+
*
|
|
253
|
+
* @param conn The connection used.
|
|
254
|
+
* @param id The cancellation id.
|
|
255
|
+
*/
|
|
256
|
+
sendCancellation(conn: MessageConnection, id: CancellationId): Promise<void>;
|
|
257
|
+
/**
|
|
258
|
+
* Cleanup any cancellation state for the given cancellation id. After this
|
|
259
|
+
* method has been call no cancellation will be sent anymore for the given id.
|
|
260
|
+
*
|
|
261
|
+
* @param id The cancellation id.
|
|
262
|
+
*/
|
|
263
|
+
cleanup(id: CancellationId): void;
|
|
264
|
+
/**
|
|
265
|
+
* An optional method to dispose the strategy.
|
|
266
|
+
*/
|
|
267
|
+
dispose?(): void;
|
|
268
|
+
}
|
|
269
|
+
export declare namespace CancellationSenderStrategy {
|
|
270
|
+
const Message: CancellationSenderStrategy;
|
|
271
|
+
function is(value: any): value is CancellationSenderStrategy;
|
|
272
|
+
}
|
|
273
|
+
export interface CancellationStrategy {
|
|
274
|
+
receiver: CancellationReceiverStrategy | RequestCancellationReceiverStrategy;
|
|
275
|
+
sender: CancellationSenderStrategy;
|
|
276
|
+
}
|
|
277
|
+
export declare namespace CancellationStrategy {
|
|
278
|
+
const Message: CancellationStrategy;
|
|
279
|
+
function is(value: any): value is CancellationStrategy;
|
|
280
|
+
}
|
|
281
|
+
export interface MessageStrategy {
|
|
282
|
+
handleMessage(message: Message, next: (message: Message) => NotificationResult): NotificationResult;
|
|
283
|
+
}
|
|
284
|
+
export declare namespace MessageStrategy {
|
|
285
|
+
function is(value: any): value is MessageStrategy;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Connection options. A valid connection option must have at least a
|
|
289
|
+
* `CancellationStrategy` or a `MessageStrategy` or a `ConnectionStrategy`.
|
|
290
|
+
*/
|
|
291
|
+
export interface ConnectionOptions {
|
|
292
|
+
cancellationStrategy?: CancellationStrategy;
|
|
293
|
+
connectionStrategy?: ConnectionStrategy;
|
|
294
|
+
messageStrategy?: MessageStrategy;
|
|
295
|
+
maxParallelism?: number;
|
|
296
|
+
}
|
|
297
|
+
export declare namespace ConnectionOptions {
|
|
298
|
+
function is(value: any): value is ConnectionOptions;
|
|
299
|
+
}
|
|
300
|
+
export interface MessageConnection {
|
|
301
|
+
sendRequest<R, E>(type: RequestType0<R, E>, token?: CancellationToken): Promise<R>;
|
|
302
|
+
sendRequest<P, R, E>(type: RequestType<P, R, E>, params: NoInfer<RequestParam<P>>, token?: CancellationToken): Promise<R>;
|
|
303
|
+
sendRequest<P1, R, E>(type: RequestType1<P1, R, E>, p1: NoInfer<RequestParam<P1>>, token?: CancellationToken): Promise<R>;
|
|
304
|
+
sendRequest<P1, P2, R, E>(type: RequestType2<P1, P2, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, token?: CancellationToken): Promise<R>;
|
|
305
|
+
sendRequest<P1, P2, P3, R, E>(type: RequestType3<P1, P2, P3, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, token?: CancellationToken): Promise<R>;
|
|
306
|
+
sendRequest<P1, P2, P3, P4, R, E>(type: RequestType4<P1, P2, P3, P4, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, token?: CancellationToken): Promise<R>;
|
|
307
|
+
sendRequest<P1, P2, P3, P4, P5, R, E>(type: RequestType5<P1, P2, P3, P4, P5, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, token?: CancellationToken): Promise<R>;
|
|
308
|
+
sendRequest<P1, P2, P3, P4, P5, P6, R, E>(type: RequestType6<P1, P2, P3, P4, P5, P6, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, token?: CancellationToken): Promise<R>;
|
|
309
|
+
sendRequest<P1, P2, P3, P4, P5, P6, P7, R, E>(type: RequestType7<P1, P2, P3, P4, P5, P6, P7, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, token?: CancellationToken): Promise<R>;
|
|
310
|
+
sendRequest<P1, P2, P3, P4, P5, P6, P7, P8, R, E>(type: RequestType8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>, token?: CancellationToken): Promise<R>;
|
|
311
|
+
sendRequest<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>(type: RequestType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>, p9: NoInfer<RequestParam<P9>>, token?: CancellationToken): Promise<R>;
|
|
312
|
+
sendRequest<R>(method: string, r0?: ParameterStructures | any, ...rest: any[]): Promise<R>;
|
|
313
|
+
onRequest<R, E>(type: RequestType0<R, E>, handler: NoInfer<RequestHandler0<R, E>>): Disposable;
|
|
314
|
+
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: NoInfer<RequestHandler<P, R, E>>): Disposable;
|
|
315
|
+
onRequest<P1, R, E>(type: RequestType1<P1, R, E>, handler: NoInfer<RequestHandler1<P1, R, E>>): Disposable;
|
|
316
|
+
onRequest<P1, P2, R, E>(type: RequestType2<P1, P2, R, E>, handler: NoInfer<RequestHandler2<P1, P2, R, E>>): Disposable;
|
|
317
|
+
onRequest<P1, P2, P3, R, E>(type: RequestType3<P1, P2, P3, R, E>, handler: NoInfer<RequestHandler3<P1, P2, P3, R, E>>): Disposable;
|
|
318
|
+
onRequest<P1, P2, P3, P4, R, E>(type: RequestType4<P1, P2, P3, P4, R, E>, handler: NoInfer<RequestHandler4<P1, P2, P3, P4, R, E>>): Disposable;
|
|
319
|
+
onRequest<P1, P2, P3, P4, P5, R, E>(type: RequestType5<P1, P2, P3, P4, P5, R, E>, handler: NoInfer<RequestHandler5<P1, P2, P3, P4, P5, R, E>>): Disposable;
|
|
320
|
+
onRequest<P1, P2, P3, P4, P5, P6, R, E>(type: RequestType6<P1, P2, P3, P4, P5, P6, R, E>, handler: NoInfer<RequestHandler6<P1, P2, P3, P4, P5, P6, R, E>>): Disposable;
|
|
321
|
+
onRequest<P1, P2, P3, P4, P5, P6, P7, R, E>(type: RequestType7<P1, P2, P3, P4, P5, P6, P7, R, E>, handler: NoInfer<RequestHandler7<P1, P2, P3, P4, P5, P6, P7, R, E>>): Disposable;
|
|
322
|
+
onRequest<P1, P2, P3, P4, P5, P6, P7, P8, R, E>(type: RequestType8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>, handler: NoInfer<RequestHandler8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>>): Disposable;
|
|
323
|
+
onRequest<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>(type: RequestType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>, handler: NoInfer<RequestHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>>): Disposable;
|
|
324
|
+
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
|
|
325
|
+
onRequest(handler: StarRequestHandler): Disposable;
|
|
326
|
+
hasPendingResponse(): boolean;
|
|
327
|
+
sendNotification(type: NotificationType0): Promise<void>;
|
|
328
|
+
sendNotification<P>(type: NotificationType<P>, params?: NoInfer<RequestParam<P>>): Promise<void>;
|
|
329
|
+
sendNotification<P1>(type: NotificationType1<P1>, p1: NoInfer<RequestParam<P1>>): Promise<void>;
|
|
330
|
+
sendNotification<P1, P2>(type: NotificationType2<P1, P2>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>): Promise<void>;
|
|
331
|
+
sendNotification<P1, P2, P3>(type: NotificationType3<P1, P2, P3>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>): Promise<void>;
|
|
332
|
+
sendNotification<P1, P2, P3, P4>(type: NotificationType4<P1, P2, P3, P4>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>): Promise<void>;
|
|
333
|
+
sendNotification<P1, P2, P3, P4, P5>(type: NotificationType5<P1, P2, P3, P4, P5>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>): Promise<void>;
|
|
334
|
+
sendNotification<P1, P2, P3, P4, P5, P6>(type: NotificationType6<P1, P2, P3, P4, P5, P6>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>): Promise<void>;
|
|
335
|
+
sendNotification<P1, P2, P3, P4, P5, P6, P7>(type: NotificationType7<P1, P2, P3, P4, P5, P6, P7>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>): Promise<void>;
|
|
336
|
+
sendNotification<P1, P2, P3, P4, P5, P6, P7, P8>(type: NotificationType8<P1, P2, P3, P4, P5, P6, P7, P8>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>): Promise<void>;
|
|
337
|
+
sendNotification<P1, P2, P3, P4, P5, P6, P7, P8, P9>(type: NotificationType9<P1, P2, P3, P4, P5, P6, P7, P8, P9>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>, p9: NoInfer<RequestParam<P9>>): Promise<void>;
|
|
338
|
+
sendNotification(method: string, r0?: ParameterStructures | any, ...rest: any[]): Promise<void>;
|
|
339
|
+
onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
|
|
340
|
+
onNotification<P>(type: NotificationType<P>, handler: NoInfer<NotificationHandler<P>>): Disposable;
|
|
341
|
+
onNotification<P1>(type: NotificationType1<P1>, handler: NoInfer<NotificationHandler1<P1>>): Disposable;
|
|
342
|
+
onNotification<P1, P2>(type: NotificationType2<P1, P2>, handler: NoInfer<NotificationHandler2<P1, P2>>): Disposable;
|
|
343
|
+
onNotification<P1, P2, P3>(type: NotificationType3<P1, P2, P3>, handler: NoInfer<NotificationHandler3<P1, P2, P3>>): Disposable;
|
|
344
|
+
onNotification<P1, P2, P3, P4>(type: NotificationType4<P1, P2, P3, P4>, handler: NoInfer<NotificationHandler4<P1, P2, P3, P4>>): Disposable;
|
|
345
|
+
onNotification<P1, P2, P3, P4, P5>(type: NotificationType5<P1, P2, P3, P4, P5>, handler: NoInfer<NotificationHandler5<P1, P2, P3, P4, P5>>): Disposable;
|
|
346
|
+
onNotification<P1, P2, P3, P4, P5, P6>(type: NotificationType6<P1, P2, P3, P4, P5, P6>, handler: NoInfer<NotificationHandler6<P1, P2, P3, P4, P5, P6>>): Disposable;
|
|
347
|
+
onNotification<P1, P2, P3, P4, P5, P6, P7>(type: NotificationType7<P1, P2, P3, P4, P5, P6, P7>, handler: NoInfer<NotificationHandler7<P1, P2, P3, P4, P5, P6, P7>>): Disposable;
|
|
348
|
+
onNotification<P1, P2, P3, P4, P5, P6, P7, P8>(type: NotificationType8<P1, P2, P3, P4, P5, P6, P7, P8>, handler: NoInfer<NotificationHandler8<P1, P2, P3, P4, P5, P6, P7, P8>>): Disposable;
|
|
349
|
+
onNotification<P1, P2, P3, P4, P5, P6, P7, P8, P9>(type: NotificationType9<P1, P2, P3, P4, P5, P6, P7, P8, P9>, handler: NoInfer<NotificationHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9>>): Disposable;
|
|
350
|
+
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
|
|
351
|
+
onNotification(handler: StarNotificationHandler): Disposable;
|
|
352
|
+
onUnhandledNotification: Event<NotificationMessage>;
|
|
353
|
+
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NoInfer<NotificationHandler<P>>): Disposable;
|
|
354
|
+
sendProgress<P>(type: ProgressType<P>, token: string | number, value: NoInfer<RequestParam<P>>): Promise<void>;
|
|
355
|
+
onUnhandledProgress: Event<ProgressParams<any>>;
|
|
356
|
+
trace(value: Trace, tracer: Tracer, sendNotification?: boolean): Promise<void>;
|
|
357
|
+
trace(value: Trace, tracer: Tracer, traceOptions?: TraceOptions): Promise<void>;
|
|
358
|
+
onError: Event<[Error, Message | undefined, number | undefined]>;
|
|
359
|
+
onClose: Event<void>;
|
|
360
|
+
listen(): void;
|
|
361
|
+
end(): void;
|
|
362
|
+
onDispose: Event<void>;
|
|
363
|
+
dispose(): void;
|
|
364
|
+
inspect(): void;
|
|
365
|
+
}
|
|
366
|
+
export declare function createMessageConnection(messageReader: MessageReader, messageWriter: MessageWriter, _logger?: Logger, options?: ConnectionOptions): MessageConnection;
|
|
367
|
+
export {};
|