cogsbox-state 0.5.426 → 0.5.428
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/CogsState.d.ts +1 -1
- package/dist/CogsState.jsx +793 -857
- package/dist/CogsState.jsx.map +1 -1
- package/dist/Functions.jsx +134 -136
- package/dist/Functions.jsx.map +1 -1
- package/dist/index.js +9 -8
- package/dist/store.d.ts +18 -8
- package/dist/store.js +165 -186
- package/dist/store.js.map +1 -1
- package/dist/utility.d.ts +1 -0
- package/dist/utility.js +165 -121
- package/dist/utility.js.map +1 -1
- package/package.json +7 -2
- package/src/CogsState.tsx +385 -694
- package/src/Functions.tsx +47 -39
- package/src/store.ts +172 -195
- package/src/utility.ts +88 -10
package/dist/CogsState.d.ts
CHANGED
|
@@ -324,7 +324,7 @@ export type TransformedStateType<T> = {
|
|
|
324
324
|
[P in keyof T]: T[P] extends CogsInitialState<infer U> ? U : T[P];
|
|
325
325
|
};
|
|
326
326
|
export declare function addStateOptions<T extends unknown>(initialState: T, { formElements, validation }: OptionsType<T>): T;
|
|
327
|
-
export declare const createCogsState: <State extends Record<
|
|
327
|
+
export declare const createCogsState: <State extends Record<StateKeys, unknown>>(initialState: State, opt?: {
|
|
328
328
|
formElements?: FormsElementsType;
|
|
329
329
|
validation?: ValidationOptionsType;
|
|
330
330
|
}) => {
|