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 +1 -1
- package/src/CogsState.tsx +2 -2
package/package.json
CHANGED
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
|
-
|
|
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
|
|