@ioca/react 1.1.1 → 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.
- package/lib/css/index.css +1 -1
- package/lib/css/index.css.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/index.d.ts +4 -6
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|