@ekz/formix 1.0.0 → 1.0.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/lib/form.d.ts +1 -1
- package/package.json +1 -1
package/lib/form.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare function FormProvider(props: {
|
|
|
5
5
|
}): React.ReactElement;
|
|
6
6
|
export declare function useForm(): FormApi;
|
|
7
7
|
export declare function useFormWithFields<Deps extends unknown[], F extends GenericFieldRef>(fieldsCreator: (...deps: [...Deps]) => F, deps: [...Deps]): FormWithFields<F>;
|
|
8
|
-
export declare function withForm<Props
|
|
8
|
+
export declare function withForm<Props>(Component: React.ComponentType<Props>): React.ComponentType<Props>;
|
|
9
9
|
type UseFormProps = {
|
|
10
10
|
children: (form: FormApi) => React.ReactNode;
|
|
11
11
|
};
|