@dolittle/sdk.common
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
17 lines • 871 B
TypeScript
import { Constructor } from '@dolittle/types';
import { DecoratorTarget } from './DecoratorTarget';
/**
* The exception that gets thrown when a required decorator is not applied.
*/
export declare class RequiredDecoratorNotApplied extends Error {
/**
* Initialises a new instance of the {@link RequiredDecoratorNotApplied} class.
* @param {string} displayName - The decorator display name.
* @param {DecoratorTarget} validTargets - The valid targets of the decorator.
* @param {Constructor<any>} type - The class that was expected to have the decorator.
* @param {string} reason - The reason why the decorator is required.
*/
constructor(displayName: string, validTargets: DecoratorTarget, type: Constructor<any>, reason: string);
private static getApplicableTargets;
}
//# sourceMappingURL=RequiredDecoratorNotApplied.d.ts.map