UNPKG

@veltdev/react

Version:

Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.

15 lines (14 loc) 669 B
declare type LiveStateMiddlewareConfig = { allowedActionTypes?: Set<string>; disabledActionTypes?: Set<string>; allowAction?: (action: any) => boolean; liveStateDataId?: string; }; export declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => { middleware: (store: any) => (next: any) => (action: any) => any; updateLiveStateDataId: (newId?: string) => void; updateAllowedActionTypes: (newAllowedActionTypes?: Set<string>) => void; updateDisabledActionTypes: (newDisabledActionTypes?: Set<string>) => void; updateAllowAction: (newAllowAction?: ((action: any) => boolean) | undefined) => void; }; export {};