@pulsecron/nestjs-pulse
Version:
The modern MongoDB-powered scheduling library pulse for NestJS
17 lines (16 loc) • 784 B
TypeScript
import { Type } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { PulseModuleJobOptions } from '../decorators';
import { JobProcessorType } from '../enums';
export declare class PulseMetadataAccessor {
private readonly reflector;
constructor(reflector: Reflector);
isQueue(target: Type<any> | Function): boolean;
isEventListener(target: Type<any> | Function): boolean;
isJobProcessor(target: Type<any> | Function): boolean;
getListenerMetadata(target: Type<any> | Function): any;
getQueueMetadata(target: Type<any> | Function): any;
getJobProcessorType(target: Function): JobProcessorType;
getJobName(target: Function): string | undefined;
getJobProcessorMetadata(target: Type<any> | Function): PulseModuleJobOptions;
}