@salesforce/kit
    Preparing search index...

    Class AsyncOptionalCreatable<O>Abstract

    A base class for classes that must be constructed and initialized asynchronously without requiring an options object.

    Type Parameters

    • O = object
    Index
    • Constructs a new AsyncCreatable instance. For internal and subclass use only. New subclass instances must be created with the static create method.

      Type Parameters

      • O = object

      Parameters

      • Optionaloptions: O

        An options object providing initialization params.

      Returns AsyncOptionalCreatable<O>

    • Asynchronously constructs and initializes a new instance of a concrete subclass with the optional options.

      Type Parameters

      Parameters

      • this: new (opts?: P) => T
      • Optionaloptions: P

        An options object providing initialization params to the async constructor.

      Returns Promise<T>