diff --git a/src/index.ts b/src/index.ts index 932f475..3ad7667 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ export { default as useInertiaForm, type UseInertiaFormProps, type NestedObject } from './useInertiaForm' -export { default as useInertiaInput } from './useInertiaInput' +export { default as useInertiaInput, type UseInertiaInputProps } from './useInertiaInput' export { default as useDynamicInputs } from './useDynamicInputs' export { Form, diff --git a/src/useInertiaInput/index.ts b/src/useInertiaInput/index.ts index ae8763d..5a277f0 100644 --- a/src/useInertiaInput/index.ts +++ b/src/useInertiaInput/index.ts @@ -4,7 +4,7 @@ import inputStrategy, { type InputStrategy } from './inputStrategy' import { type NestedObject } from '../useInertiaForm' import { useEffect } from 'react' -interface UseInertiaInputProps { +export interface UseInertiaInputProps { name: string model?: string errorKey?: string