UNPKG

angular-ts-descriptor

Version:
39 lines (38 loc) 1.19 kB
export declare const BASE_SHEMA: string; export declare enum BaseValueProp { None = 0, Text = 1, Input = 2, Disabled = 3, Hidden = 4 } export declare enum BaseValueType { Text = "text", Number = "number", Array = "array", Object = "object", Boolean = "boolean", Undefined = "undefined", Date = "date", Time = "time", Error = "error", Custom = "custom" } export declare class BaseParam { type: BaseValueType; shema: string; prop: BaseValueProp; template: string; provider: string; validator: string; constructor(type?: BaseValueType, shema?: string, prop?: BaseValueProp, template?: string, provider?: string, validator?: string); } export declare class BaseValue { name: string; param: BaseParam; constructor(name: string, param: BaseParam); } export declare function Descriptor(descriptor: Array<BaseParam>, property: Array<string>): <T extends new (...args: any[]) => {}>(constructor: T) => { new (...args: any[]): {}; } & T; export declare function BaseDescriptors(descriptor: Array<BaseParam>): (target: any, propertyKey: string) => void;