- waitFor<
Name extends
| "blocklist.sync"
| "call.incoming_call"
| (keyof ChatEventTypes)
| "config.update"
| (keyof ConnEventTypes)
| "group.participant_changed"
| "order.payment_status"
| "status.sync"
| (keyof WebpackEvents)
| "alfa"
| "beta",
>(
event: Name,
timeout?: number,
): CancelablePromise<
ListenerType<
(
BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
alfa: string;
beta: (from: number, to: string) => void;
}
)[Name],
>,
> Type Parameters
- Name extends
| "blocklist.sync"
| "call.incoming_call"
| (keyof ChatEventTypes)
| "config.update"
| (keyof ConnEventTypes)
| "group.participant_changed"
| "order.payment_status"
| "status.sync"
| (keyof WebpackEvents)
| "alfa"
| "beta"
Parameters
- event: Name
Optional
timeout: number
- waitFor<
Name extends
| "blocklist.sync"
| "call.incoming_call"
| (keyof ChatEventTypes)
| "config.update"
| (keyof ConnEventTypes)
| "group.participant_changed"
| "order.payment_status"
| "status.sync"
| (keyof WebpackEvents)
| "alfa"
| "beta",
>(
event: Name,
filter?: WaitForFilter,
): CancelablePromise<
ListenerType<
(
BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
alfa: string;
beta: (from: number, to: string) => void;
}
)[Name],
>,
> Type Parameters
- Name extends
| "blocklist.sync"
| "call.incoming_call"
| (keyof ChatEventTypes)
| "config.update"
| (keyof ConnEventTypes)
| "group.participant_changed"
| "order.payment_status"
| "status.sync"
| (keyof WebpackEvents)
| "alfa"
| "beta"
Parameters
- event: Name
Optional
filter: WaitForFilter
- waitFor<
Name extends
| "blocklist.sync"
| "call.incoming_call"
| (keyof ChatEventTypes)
| "config.update"
| (keyof ConnEventTypes)
| "group.participant_changed"
| "order.payment_status"
| "status.sync"
| (keyof WebpackEvents)
| "alfa"
| "beta",
>(
event: Name,
options?: WaitForOptions,
): CancelablePromise<
ListenerType<
(
BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
alfa: string;
beta: (from: number, to: string) => void;
}
)[Name],
>,
> Type Parameters
- Name extends
| "blocklist.sync"
| "call.incoming_call"
| (keyof ChatEventTypes)
| "config.update"
| (keyof ConnEventTypes)
| "group.participant_changed"
| "order.payment_status"
| "status.sync"
| (keyof WebpackEvents)
| "alfa"
| "beta"
Parameters
- event: Name
Optional
options: WaitForOptions
Returns a thenable object (promise interface) that resolves when a specific event occurs