Interface ApiHandlers

interface ApiHandlers {
    add: (<T>(action: T, handler: ((data: ApiHandlerPayload[T]) => Promise<void>)) => void);
    get: (() => ApiHandler<keyof ApiHandlerPayload>[]);
    remove: ((action: keyof ApiHandlerPayload) => void);
}

Properties

Properties

add: (<T>(action: T, handler: ((data: ApiHandlerPayload[T]) => Promise<void>)) => void)
get: (() => ApiHandler<keyof ApiHandlerPayload>[])
remove: ((action: keyof ApiHandlerPayload) => void)