sibujs 1.0.8 → 1.0.9
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.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -313,7 +313,7 @@ declare function show<T extends Element>(condition: () => boolean, element: T):
|
|
|
313
313
|
* );
|
|
314
314
|
* ```
|
|
315
315
|
*/
|
|
316
|
-
declare function when(condition: () =>
|
|
316
|
+
declare function when<T>(condition: () => T, thenBranch: () => NodeChild, elseBranch?: () => NodeChild): Comment;
|
|
317
317
|
/**
|
|
318
318
|
* Pattern matching directive. Renders content based on matching a reactive value
|
|
319
319
|
* against multiple cases. Similar to a switch statement.
|
package/dist/index.d.ts
CHANGED
|
@@ -313,7 +313,7 @@ declare function show<T extends Element>(condition: () => boolean, element: T):
|
|
|
313
313
|
* );
|
|
314
314
|
* ```
|
|
315
315
|
*/
|
|
316
|
-
declare function when(condition: () =>
|
|
316
|
+
declare function when<T>(condition: () => T, thenBranch: () => NodeChild, elseBranch?: () => NodeChild): Comment;
|
|
317
317
|
/**
|
|
318
318
|
* Pattern matching directive. Renders content based on matching a reactive value
|
|
319
319
|
* against multiple cases. Similar to a switch statement.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sibujs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "A lightweight, function-based frontend framework that combines the best of React, Svelte, and Vue — with zero VDOM and maximum simplicity. Designed for developers who want fine-grained reactivity and full control without compilation or magic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"frontend",
|