UNPKG

@cisstech/nge

Version:

NG Essentials is a collection of libraries for Angular developers.

22 lines (21 loc) 642 B
interface ClassInfo { resolver?: (props: Record<string, any>) => Function; } interface PropertyInfo { type?: Function; indexed?: boolean; aliases?: string[]; } export declare class Builder<T> { /** * Creates new instance of `T` class. * @param props properties to pass to the constructor of the instance. * @returns new instance of `T` */ static create<T>(props: Partial<T>): T; save(): Record<keyof T, any>; with(props: Partial<T>): T; } export declare function Entity(info?: ClassInfo): ClassDecorator; export declare function Property(info?: PropertyInfo): PropertyDecorator; export {};