mirror of
https://github.com/docmost/docmost.git
synced 2026-05-21 01:04:39 +08:00
cleanup type
This commit is contained in:
@@ -20,7 +20,6 @@ export type SerializedHTTPRequest = {
|
|||||||
export type RSAMessageProxy = {
|
export type RSAMessageProxy = {
|
||||||
type: 'proxy';
|
type: 'proxy';
|
||||||
replyTo: string;
|
replyTo: string;
|
||||||
// @ts-ignore
|
|
||||||
message: Uint8Array<ArrayBufferLike>;
|
message: Uint8Array<ArrayBufferLike>;
|
||||||
serializedHTTPRequest: SerializedHTTPRequest;
|
serializedHTTPRequest: SerializedHTTPRequest;
|
||||||
};
|
};
|
||||||
@@ -103,17 +102,16 @@ export type CustomEvents = Record<
|
|||||||
(documentName: string, payload: unknown) => Promise<unknown>
|
(documentName: string, payload: unknown) => Promise<unknown>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export type Configuration<TCE> = {
|
export interface Configuration<TCE> {
|
||||||
redis: RedisClient;
|
redis: RedisClient;
|
||||||
pack: Pack;
|
pack: Pack;
|
||||||
unpack: Unpack;
|
unpack: Unpack;
|
||||||
serverId: ServerId;
|
serverId: ServerId;
|
||||||
lockTTL?: number;
|
lockTTL?: number;
|
||||||
customEventTTL?: number;
|
customEventTTL?: number;
|
||||||
proxySocketTTL?: number;
|
|
||||||
prefix?: string;
|
prefix?: string;
|
||||||
customEvents?: TCE;
|
customEvents?: TCE;
|
||||||
};
|
}
|
||||||
|
|
||||||
export type BaseWebSocket = EventEmitter & {
|
export type BaseWebSocket = EventEmitter & {
|
||||||
readyState: number;
|
readyState: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user