mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
export Event and ContextEvents type to include them in the documentation.
This commit is contained in:
@@ -5,14 +5,14 @@ import { RawClient } from "../generated/client.js";
|
|||||||
import { WebsocketTransport, BaseTransport, Request } from "yerpc";
|
import { WebsocketTransport, BaseTransport, Request } from "yerpc";
|
||||||
import { TinyEmitter } from "@deltachat/tiny-emitter";
|
import { TinyEmitter } from "@deltachat/tiny-emitter";
|
||||||
|
|
||||||
type Events = { ALL: (accountId: number, event: EventType) => void } & {
|
export type Events = { ALL: (accountId: number, event: EventType) => void } & {
|
||||||
[Property in EventType["kind"]]: (
|
[Property in EventType["kind"]]: (
|
||||||
accountId: number,
|
accountId: number,
|
||||||
event: Extract<EventType, { kind: Property }>
|
event: Extract<EventType, { kind: Property }>
|
||||||
) => void;
|
) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
type ContextEvents = { ALL: (event: EventType) => void } & {
|
export type ContextEvents = { ALL: (event: EventType) => void } & {
|
||||||
[Property in EventType["kind"]]: (
|
[Property in EventType["kind"]]: (
|
||||||
event: Extract<EventType, { kind: Property }>
|
event: Extract<EventType, { kind: Property }>
|
||||||
) => void;
|
) => void;
|
||||||
|
|||||||
Reference in New Issue
Block a user