opinionated-machine
Version:
Very opinionated DI framework for fastify, built on top of awilix
14 lines (13 loc) • 1 kB
TypeScript
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;
/**
* Returns true if either specific queue is enabled (if name is specified), or if any queue is enabled (if no name is provided)
* @param enabled
* @param name
*/
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;