From 6e63ef279ea864ece3ca74c658e375ca94d94e41 Mon Sep 17 00:00:00 2001 From: Avram Walden Date: Wed, 22 May 2024 17:58:30 -0700 Subject: [PATCH] feat(useinertiainput): exports UseInertiaInputProps --- src/index.ts | 2 +- src/useInertiaInput/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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