cogsbox-state 0.5.475-canary.0 → 0.5.475-canary.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-state",
3
- "version": "0.5.475-canary.0",
3
+ "version": "0.5.475-canary.1",
4
4
  "description": "React state management library with form controls and server sync",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/CogsState.tsx CHANGED
@@ -243,7 +243,7 @@ export type EndType<
243
243
  $_status: 'fresh' | 'dirty' | 'synced' | 'restored' | 'unknown';
244
244
  $getStatus: () => 'fresh' | 'dirty' | 'synced' | 'restored' | 'unknown';
245
245
  $showValidationErrors: () => string[];
246
- $validate: () => { success: boolean; data?: T; error?: any };
246
+
247
247
  $setValidation: (ctx: string) => void;
248
248
  $removeValidation: (ctx: string) => void;
249
249
 
@@ -287,7 +287,7 @@ export type StateObject<
287
287
  : never) &
288
288
  EndType<T, TPlugins, true> & {
289
289
  $toggle: T extends boolean ? () => void : never;
290
-
290
+ $validate: () => { success: boolean; data?: T; error?: any };
291
291
  $_componentId: string | null;
292
292
  $getComponents: () => ComponentsType;
293
293