add homepage information type
This commit is contained in:
8
dist/sse.d.ts
vendored
8
dist/sse.d.ts
vendored
@@ -1,12 +1,12 @@
|
||||
export interface SseClient {
|
||||
export type SseClient = {
|
||||
id: number;
|
||||
send: (data: SseEvent) => void;
|
||||
}
|
||||
export interface SseEvent {
|
||||
};
|
||||
export type SseEvent = {
|
||||
type: string;
|
||||
data?: unknown;
|
||||
message?: string;
|
||||
}
|
||||
};
|
||||
export declare class SseService {
|
||||
private clients;
|
||||
addClient(client: SseClient): void;
|
||||
|
||||
Reference in New Issue
Block a user