element-vir 25.2.0 → 25.3.0
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.
|
@@ -47,7 +47,7 @@ export declare class InternalAsyncPropClass<Value, Params> extends CallbackObser
|
|
|
47
47
|
* Promise). This type guards the current instance's `.value` property.
|
|
48
48
|
*/
|
|
49
49
|
isWaiting(): this is Overwrite<this, {
|
|
50
|
-
value: Extract<AsyncValue<Value>, Promise<any
|
|
50
|
+
value: Extract<AsyncValue<Value>, Promise<any>>;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
53
|
* Checks if the current `.value` is a rejection error. This type guards the current instance's
|
|
@@ -56,6 +56,13 @@ export declare class InternalAsyncPropClass<Value, Params> extends CallbackObser
|
|
|
56
56
|
isError(): this is Overwrite<this, {
|
|
57
57
|
value: Extract<AsyncValue<Value>, Error>;
|
|
58
58
|
}>;
|
|
59
|
+
/**
|
|
60
|
+
* Checks if the current `.value` is resolved (and not an error) or still waiting. This type
|
|
61
|
+
* guards the current instance's `.value` property.
|
|
62
|
+
*/
|
|
63
|
+
isNotError(): this is Overwrite<this, {
|
|
64
|
+
value: Exclude<AsyncValue<Value>, Error>;
|
|
65
|
+
}>;
|
|
59
66
|
}
|
|
60
67
|
/**
|
|
61
68
|
* An async property created by {@link asyncProp} for use within declarative elements. Do not use
|
|
@@ -72,6 +72,13 @@ export class InternalAsyncPropClass extends CallbackObservable {
|
|
|
72
72
|
isError() {
|
|
73
73
|
return this.value instanceof Error;
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Checks if the current `.value` is resolved (and not an error) or still waiting. This type
|
|
77
|
+
* guards the current instance's `.value` property.
|
|
78
|
+
*/
|
|
79
|
+
isNotError() {
|
|
80
|
+
return !(this.value instanceof Error);
|
|
81
|
+
}
|
|
75
82
|
}
|
|
76
83
|
/**
|
|
77
84
|
* Create an async prop for a declarative element's state.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "element-vir",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.3.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"custom",
|
|
6
6
|
"web",
|
|
@@ -38,31 +38,31 @@
|
|
|
38
38
|
"test:docs": "virmator docs check"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@augment-vir/assert": "^31.
|
|
42
|
-
"@augment-vir/common": "^31.
|
|
41
|
+
"@augment-vir/assert": "^31.11.0",
|
|
42
|
+
"@augment-vir/common": "^31.11.0",
|
|
43
43
|
"date-vir": "^7.3.1",
|
|
44
|
-
"lit": "^3.
|
|
44
|
+
"lit": "^3.3.0",
|
|
45
45
|
"lit-css-vars": "^3.0.11",
|
|
46
|
-
"lit-html": "^3.
|
|
46
|
+
"lit-html": "^3.3.0",
|
|
47
47
|
"object-shape-tester": "^5.1.5",
|
|
48
48
|
"observavir": "^2.0.5",
|
|
49
49
|
"typed-event-target": "^4.0.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@augment-vir/test": "^31.
|
|
53
|
-
"@augment-vir/web": "^31.
|
|
52
|
+
"@augment-vir/test": "^31.11.0",
|
|
53
|
+
"@augment-vir/web": "^31.11.0",
|
|
54
54
|
"@web/dev-server-esbuild": "^1.0.4",
|
|
55
|
-
"@web/test-runner": "^0.20.
|
|
55
|
+
"@web/test-runner": "^0.20.1",
|
|
56
56
|
"@web/test-runner-commands": "^0.9.0",
|
|
57
57
|
"@web/test-runner-playwright": "^0.11.0",
|
|
58
58
|
"@web/test-runner-visual-regression": "^0.10.0",
|
|
59
59
|
"html-spec-tags": "^2.2.2",
|
|
60
60
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
61
61
|
"markdown-code-example-inserter": "^3.0.3",
|
|
62
|
-
"type-fest": "^4.
|
|
63
|
-
"typedoc": "^0.28.
|
|
64
|
-
"typescript": "5.8.
|
|
65
|
-
"vite": "^6.2.
|
|
62
|
+
"type-fest": "^4.40.0",
|
|
63
|
+
"typedoc": "^0.28.2",
|
|
64
|
+
"typescript": "5.8.3",
|
|
65
|
+
"vite": "^6.2.6",
|
|
66
66
|
"vite-tsconfig-paths": "^5.1.4"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|