@ioca/react 1.1.2 → 1.1.3

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.
@@ -374,17 +374,15 @@ declare const Flex: (props: IFlex) => JSX.Element;
374
374
 
375
375
  declare class IFormInstance {
376
376
  readonly id?: string;
377
- data: {
378
- [key: string]: any;
379
- };
377
+ data: Record<string, any>;
378
+ cacheData: Record<string, any>;
380
379
  rules?: Pick<IForm, "rules">;
381
380
  constructor();
382
381
  get(field?: string): any;
383
382
  set(field: any, value?: any): void;
383
+ delete(field: any): void;
384
384
  clear(): void;
385
- validate(field?: string): Promise<boolean | {
386
- [key: string]: any;
387
- }>;
385
+ validate(field?: string): Promise<boolean | Record<string, any>>;
388
386
  }
389
387
  declare function useForm(form?: IFormInstance): IFormInstance;
390
388
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ioca/react",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",