element-vir 25.0.0 → 25.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,7 +25,7 @@ export declare class InternalAsyncPropClass<Value, Params> extends CallbackObser
|
|
|
25
25
|
* The current `.value` if it has settled (into either a resolved value or an Error), or
|
|
26
26
|
* `undefined` if it has not.
|
|
27
27
|
*/
|
|
28
|
-
get
|
|
28
|
+
get settledValue(): Exclude<typeof this.value, Promise<any>> | undefined;
|
|
29
29
|
/** The state of the current `.value`. */
|
|
30
30
|
get state(): AsyncValueState;
|
|
31
31
|
/**
|
|
@@ -24,8 +24,8 @@ export class InternalAsyncPropClass extends CallbackObservable {
|
|
|
24
24
|
* The current `.value` if it has settled (into either a resolved value or an Error), or
|
|
25
25
|
* `undefined` if it has not.
|
|
26
26
|
*/
|
|
27
|
-
get
|
|
28
|
-
if (this.
|
|
27
|
+
get settledValue() {
|
|
28
|
+
if (this.isSettled()) {
|
|
29
29
|
return this.value;
|
|
30
30
|
}
|
|
31
31
|
else {
|