UNPKG

systelab-components-test

Version:

Widgets to be use in the E2E Tests based in Protractor

25 lines (24 loc) 673 B
import 'reflect-metadata'; export interface IAttributeProperties { name?: string; type?: AttributeType; visible?: boolean; enable?: boolean; label?: boolean; mandatory?: boolean; length?: number; } export declare enum AttributeType { Text = 0, Date = 1, Number = 2, Password = 3 } export declare const ATTRIBUTE_PREFIX = "test:"; /** * Adds attribute metadata to a property * @param {IAttributeProperties} attributes * @returns {(target: any, propertyKey: string) => void} * @constructor */ export declare function TestAttribute(attributes: IAttributeProperties): (object: any, string: any) => void;