Class CallableFunctionParameterFactory

Hierarchy

  • CallableFunctionParameterFactory

Constructors

Methods

Constructors

Methods

  • Creates a new concrete subclass of CallableFunctionParameter based on a serialized parameter.

    Parameters

    • name: string

      The name of the parameter, usually a JavaScript identifier.

    • json: JsonSchema

      The JSON object of a CallableFunctionParameter subclass instance.

    Returns CallableFunctionParameter<{
        $comment?: string;
        default?: any;
        deprecated?: boolean;
        description?: string;
        examples?: any[];
        readOnly?: boolean;
        title?: string;
        writeOnly?: boolean;
    }>

    A concrete subclass of CallableFunctionParameter based on the JSON object.

    Remarks

    You may use the concrete subclass' fromJSON static method instead of this one, if you know the type of the parameter.

Generated using TypeDoc