@dolittle/sdk.common
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
18 lines • 706 B
TypeScript
import { Constructor } from '@dolittle/types';
/**
* Represents a decorator that has been applied to a target.
*/
export declare type AppliedDecorator = {
name: string;
displayName: string;
target: Function | Object;
propertyKey: string | symbol | undefined;
descriptorOrIndex: PropertyDescriptor | number | undefined;
};
/**
* Gets the list of decorators that have been applied to the specified type.
* @param {Constructor<any>} type - The type to get the applied decorators for.
* @returns {AppliedDecorator[]} The applied decorators.
*/
export declare function getAppliedDecorators(type: Constructor<any>): AppliedDecorator[];
//# sourceMappingURL=getAppliedDecorators.d.ts.map