solid-ctrl-flow 1.0.42 → 1.0.43
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.ts +7 -7
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare const Case: (props: {
|
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Returns a {@link Signal} that applies the `??=` operator to the input one.
|
|
78
|
-
* If the getter of {@link param0} is like
|
|
78
|
+
* If the getter of {@link param0} is like `x`, then the result one is like "(x ??= {@link f}())"
|
|
79
79
|
* @param param0 The {@link Signal} to which to coalesce the getter
|
|
80
80
|
* @param f An {@link Accessor} to the value to use when there's a nullish value
|
|
81
81
|
*/
|
|
@@ -97,8 +97,8 @@ export declare type Convert<S, D> = (x: S, prev: D) => D;
|
|
|
97
97
|
* </div>
|
|
98
98
|
* <div id="something-else">
|
|
99
99
|
* <e.Source>
|
|
100
|
-
* This text will be shown instead of
|
|
101
|
-
* If there weren't to be any
|
|
100
|
+
* This text will be shown instead of `e.Dest`.
|
|
101
|
+
* If there weren't to be any `e.Joint` ancestor, then this text would have stayed here
|
|
102
102
|
* </e.Source>
|
|
103
103
|
* </div>
|
|
104
104
|
* </e.Joint>
|
|
@@ -335,11 +335,11 @@ export declare const unwrap: <T extends object>(f: Accessor<T>) => T;
|
|
|
335
335
|
* Calls {@link f} maintaining its reactivity at 2 levels.
|
|
336
336
|
* Unlike the normal {@link unwrap}, this maintains reactivity on the elements of the array too, which means that it can be destructured
|
|
337
337
|
* ```ts
|
|
338
|
-
* const first = unwrap(f); // The value of
|
|
339
|
-
* const [ getFirst ] = first; // The value of
|
|
338
|
+
* const first = unwrap(f); // The value of `first` is reactive but CANNOT be destructured
|
|
339
|
+
* const [ getFirst ] = first; // The value of `getFirst()` is NOT reactive, it's the first element of the CURRENT signal returned by `f()`
|
|
340
340
|
*
|
|
341
|
-
* const second = unwrapSignal(f); // The value of
|
|
342
|
-
* const [ getSecond ] = second; // The value of
|
|
341
|
+
* const second = unwrapSignal(f); // The value of `second` is reactive and CAN be destructured
|
|
342
|
+
* const [ getSecond ] = second; // The value of `getSecond()` IS reactive, it's a function that calls `f()`, gets the first element and calls that too
|
|
343
343
|
* ```
|
|
344
344
|
* @param f An {@link Accessor} to a {@link Signal}
|
|
345
345
|
*/
|
package/dist/index.mjs
CHANGED
package/dist/index.umd.js
CHANGED