feat(core-realtime): IRealtimeHandlerRegistry extends RealtimeRegistryProtocol
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import type { z } from "zod";
|
import type { z } from "zod";
|
||||||
|
import type { RealtimeRegistryProtocol } from "@repo/core-shared/di/bind-protocols";
|
||||||
import type { RealtimeChannelDescriptor } from "./realtime-channel";
|
import type { RealtimeChannelDescriptor } from "./realtime-channel";
|
||||||
import type { IInboundDescriptor } from "./realtime-handler.interface";
|
import type { IInboundDescriptor } from "./realtime-handler.interface";
|
||||||
|
|
||||||
export interface IRealtimeHandlerRegistry {
|
export interface IRealtimeHandlerRegistry extends RealtimeRegistryProtocol {
|
||||||
register<T>(entry: IInboundDescriptor<string, z.ZodType<T>>): void;
|
register<T>(entry: IInboundDescriptor<string, z.ZodType<T>>): void;
|
||||||
getInboundDescriptor(channelName: string): IInboundDescriptor<string, z.ZodType> | null;
|
getInboundDescriptor(channelName: string): IInboundDescriptor<string, z.ZodType> | null;
|
||||||
list(): IInboundDescriptor<string, z.ZodType>[];
|
list(): IInboundDescriptor<string, z.ZodType>[];
|
||||||
|
|||||||
Reference in New Issue
Block a user