Function prop

  • Set Property Options for the property below

    Parameters

    Returns PropertyDecorator

    Example

    class ClassName {
    @prop()
    public someProp?: string;

    @prop({ type: () => [String] })
    public someArrayProp?: string[];

    @prop({ type: () => String })
    public someMapProp?: Map<string, string>;
    }

Generated using TypeDoc