Skip to content

Commit de645ef

Browse files
fix: export types
1 parent 528d65c commit de645ef

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
export { default as useFormState } from './useFormState';
1+
export {
2+
default as useFormState,
3+
FormTextInputProps,
4+
FormRawProps,
5+
} from './useFormState';
26
export { default as Form } from './Form';
37
export { default as ScrollView } from './ScrollView';
48
export type { ErrorUtility, BooleanUtility } from './types';

src/useFormState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import type { SetStateAction } from 'react';
2525
import useRefState from './useRefState';
2626
import { defaultLocale, getTranslation } from './translations/utils';
2727

28-
type FormTextInputProps = {
28+
export type FormTextInputProps = {
2929
testID: string;
3030
value: string;
3131
onBlur: TextInputProps['onBlur'];
@@ -43,7 +43,7 @@ type FormTextInputProps = {
4343
label?: string;
4444
};
4545

46-
type FormRawProps<V> = {
46+
export type FormRawProps<V> = {
4747
testID: string;
4848
value: V;
4949
onChange: (v: V) => void;

0 commit comments

Comments
 (0)