UNPKG

@ne1410s/codl

Version:

Indulge your apps with codl: a component model library

25 lines (24 loc) 943 B
import 'reflect-metadata'; import { RecordKey } from '../types'; export declare abstract class ReflectMetadata { /** * Retrieves the display name if provided (else the property key). * @param target The parent object. * @param key The property key. */ static readonly getDisplayName: (target: Object, key: RecordKey) => string; /** * Retrieves the description. * @param target The parent object. * @param key The property key. */ static readonly getDescription: (target: Object, key: RecordKey) => string; /** * Retrieves the formatted value if format provided (else the raw value). * @param target The parent object. * @param key The property key. * @param other If supplied, the formatter is applied to this value, rather * than that of the property. */ static readonly getFormatted: (target: Object, key: RecordKey, other?: unknown) => string; }