@trapi/metadata
Version:
Generate REST-API metadata scheme from TypeScript Decorators.
17 lines • 840 B
TypeScript
import type { DecoratorConfig, DecoratorID, DecoratorProperties, DecoratorPropertyConfig } from '../index';
import type { NodeDecorator } from '../../utils';
export declare class DecoratorPropertyManager<T extends `${DecoratorID}`> {
readonly representation: DecoratorConfig<T>;
readonly decorators: NodeDecorator[];
protected properties: Record<string, DecoratorPropertyConfig>;
constructor(representation: DecoratorConfig<T>, decorators: NodeDecorator[]);
/**
* Get one or more specific value(s) of the decorator arguments or typeArguments.
*
* @param type
* @param decoratorOrIndex
*/
get<P extends keyof DecoratorProperties<T>>(type: P, decoratorOrIndex?: number | NodeDecorator): DecoratorProperties<T>[P] | undefined;
protected build(): void;
}
//# sourceMappingURL=module.d.ts.map