element-vir - v26.14.3
    Preparing search index...

    Class InternalAsyncPropClass<Value, Params>

    Class for constructing async props. Do not use this directly as its internal types won't be inferred correctly. Instead use asyncProp an async prop or AsyncProp for types.

    Type Parameters

    • Value
    • Params

    Hierarchy

    • CallbackObservable<Value, Params>
      • InternalAsyncPropClass
    Index

    Constructors

    Methods

    • Checks if the current .value has resolved (meaning the Promise has settled and it was not rejected). This type guards the current instance's .value property.

      Returns this is Overwrite<
          InternalAsyncPropClass<Value, Params>,
          {
              value: Exclude<
                  Exclude<Awaited<Value>, typeof noUpdate>,
                  Error | Promise<any>,
              >;
          },
      >

    • Checks if the current .value has not settled yet settled (meaning it is still an unsettled Promise). This type guards the current instance's .value property.

      Returns this is Overwrite<
          InternalAsyncPropClass<Value, Params>,
          {
              value:
                  | Promise<Exclude<Awaited<Value>, typeof noUpdate>>
                  | Extract<Exclude<Awaited<Value>, typeof noUpdate>, Promise<any>>;
          },
      >