UNPKG

opinionated-machine

Version:

Very opinionated DI framework for fastify, built on top of awilix

9 lines (8 loc) 836 B
import type { DependencyInjectionOptions } from './DIContext.js'; export declare const ENABLE_ALL: unique symbol; export declare const resolveJobQueuesEnabled: (options: DependencyInjectionOptions) => boolean | string[]; export declare const isEnqueuedJobWorkersEnabled: (enabled?: false | typeof ENABLE_ALL | string[], name?: string) => boolean; export declare const isPeriodicJobEnabled: (enabled?: false | typeof ENABLE_ALL | string[], name?: string) => boolean; export declare const isJobQueueEnabled: (enabled?: false | typeof ENABLE_ALL | string[], name?: string) => boolean; export declare const isMessageQueueConsumerEnabled: (messageQueueConsumersEnabled?: false | typeof ENABLE_ALL | string[], name?: string) => boolean; export declare const isAnyMessageQueueConsumerEnabled: (options: DependencyInjectionOptions) => boolean;