UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

22 lines (21 loc) 898 B
/** * @module Lock */ import { type IEventDispatcher } from "../../../../event-bus/contracts/event-bus.contract.js"; import { type ILock, type LockEventMap } from "../../../../lock/contracts/_module.js"; import { type MiddlewareFn } from "../../../../middleware/contracts/_module.js"; import { type WaitUntil } from "../../../../utilities/_module.js"; /** * @internal */ export declare function handleDispatch<TEventName extends keyof LockEventMap, TEvent extends LockEventMap[TEventName]>(settings: { on: "true" | "false"; eventName: TEventName; eventData: TEvent; waitUntil: WaitUntil; eventDispatcher: IEventDispatcher<LockEventMap>; }): MiddlewareFn<[], Promise<boolean>>; /** * @internal */ export declare function handleUnexpectedError<TReturn>(waitUntil: WaitUntil, eventDispatcher: IEventDispatcher<LockEventMap>, lock: ILock): MiddlewareFn<[], Promise<TReturn>>;