ao-js-sdk - v0.0.9
    Preparing search index...

    Interface IBuilder<T>

    A generic builder interface that can be used to construct objects of type T

    interface IBuilder<T> {
        allowDefaults(allow: boolean): this;
        build(): T | Promise<T>;
        reset(): this;
    }

    Type Parameters

    • T

      The type of object being built

    Implemented by

    Index

    Methods

    • Controls whether default values should be allowed during building

      Parameters

      • allow: boolean

        If true, allows default values to be used for unset properties

      Returns this

      The builder instance for method chaining