@paragrav/rhf-utils 0.0.81 → 0.0.82

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.
@@ -1,3 +1,4 @@
1
+ export type { Register } from './register';
1
2
  export type { ClientConfig } from './client/config';
2
3
  export { default as RhfUtilsClientForZodContextProvider } from './client/zod/context/RhfUtilsClientForZodContextProvider';
3
4
  export { default as useRhfUtilsClientForZodContext } from './client/zod/context/useRhfUtilsClientForZodContext';
@@ -1,3 +1,4 @@
1
+ import { Register } from '../register';
1
2
  import { default as useResetFormAfterSubmitSuccessful } from '../submit/useResetFormOnSubmitSuccessful';
2
3
  import { DevtoolUIProps } from '@hookform/devtools/dist/devToolUI';
3
4
 
@@ -21,4 +22,6 @@ export type UseFormOptions = {
21
22
  resetFormAfterSubmitSuccessful?: Parameters<typeof useResetFormAfterSubmitSuccessful>[0];
22
23
  /** Control dev tool options. */
23
24
  devTool?: Pick<DevtoolUIProps, 'placement' | 'styles'> | 'disabled';
24
- };
25
+ } & (Register extends {
26
+ UseFormOptions: infer _UseFormOptions;
27
+ } ? _UseFormOptions : {});
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Use this to extend internal types.
3
+ * For example, `UseFormOptions`.
4
+ */
5
+ export interface Register {
6
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paragrav/rhf-utils",
3
3
  "author": "paragrav.dev",
4
4
  "license": "MIT",
5
- "version": "0.0.81",
5
+ "version": "0.0.82",
6
6
  "description": "Integration utilities for react-hook-form.",
7
7
  "type": "module",
8
8
  "sideEffects": false,