UNPKG

@dolittle/sdk.common

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

20 lines 928 B
import { DecoratorTarget } from './DecoratorTarget'; /** * Exception that gets thrown when a decorator is used on an invalid target. */ export declare class InvalidDecoratorTarget extends Error { /** * Initialises a new instance of the {@link InvalidDecorator} class. * @param {string} name - The name of the decorator that was used. * @param {DecoratorTarget} decoratedTarget - The target that was decorated. * @param {DecoratorTarget} validTargets - The valid targets for the decorator. */ constructor(name: string, decoratedTarget: DecoratorTarget, validTargets: DecoratorTarget); /** * Gets target names formatted as a human readable string. * @param {DecoratorTarget} target - The decorator target(s). * @returns {string} A human readable string. */ static getTargetNames(target: DecoratorTarget): string; } //# sourceMappingURL=InvalidDecoratorTarget.d.ts.map