Skip to content

lspeasy / client/src / NotificationWaitOptions

Interface: NotificationWaitOptions<TParams> ​

Defined in: packages/client/src/notifications/wait.ts:8

Options for NotificationWaiter and LSPClient.waitForNotification.

Config ​

Type Parameters ​

Type ParameterDescription
TParamsThe notification params type for the awaited method.

Properties ​

PropertyTypeDescriptionDefined in
filter?(params) => booleanOptional predicate to skip notifications that don't match the expected content. The waiter continues listening until a matching notification arrives or the timeout expires.packages/client/src/notifications/wait.ts:18
timeoutnumberMaximum time to wait in milliseconds before rejecting with a timeout error.packages/client/src/notifications/wait.ts:12

Released under the MIT License.