solid-ctrl-flow 1.0.15 → 1.0.16
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 +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -82,12 +82,12 @@ export declare function createExtractor(name?: string): {
|
|
|
82
82
|
* @param def Default value to set when calling the provider without one
|
|
83
83
|
* @param name Name to give to the context
|
|
84
84
|
*/
|
|
85
|
-
export declare function createOption<T>(init:
|
|
85
|
+
export declare function createOption<T>(init: T, def?: T, name?: string): ((props: {
|
|
86
86
|
value?: T;
|
|
87
87
|
children: JSX.Element;
|
|
88
88
|
}) => JSX.Element) & {
|
|
89
89
|
/** Returns the {@link Accessor} for the value in the current context */
|
|
90
|
-
read: Accessor<
|
|
90
|
+
read: Accessor<T>;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
/** Creates a scope for the value of {@link Debug.read}, which allows you to display different things in debug mode */
|