@dolittle/sdk.common
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
19 lines • 1.19 kB
TypeScript
import { Constructor } from '@dolittle/types';
import { DecoratorTarget } from './DecoratorTarget';
/**
* The exception that gets thrown when a decorator that is only permitted once is applied multiple times to the same target.
*/
export declare class DecoratorAppliedMultipleTimes extends Error {
/**
* Initialises a new instance of the {@link DecoratorAppliedMultipleTimes} class.
* @param {string} displayName - The display name of the decorator.
* @param {DecoratorTarget} decoratedTarget - The type of the decorated target.
* @param {Constructor<any>} type - The class that was decorated.
* @param {Function | Object} target - The decorated target.
* @param {string | symbol} [propertyKey] - An optional decorated property key.
* @param {PropertyDescriptor | number} [descriptorOrIndex] - An optional decorated descriptor or index.
*/
constructor(displayName: string, decoratedTarget: DecoratorTarget, type: Constructor<any>, target: Function | Object, propertyKey?: string | symbol, descriptorOrIndex?: PropertyDescriptor | number);
private static getDecoratedTarget;
}
//# sourceMappingURL=DecoratorAppliedMultipleTimes.d.ts.map