Skip to content

Commit

Permalink
fix: export types
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout committed Feb 3, 2023
1 parent 528d65c commit de645ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export { default as useFormState } from './useFormState';
export {
default as useFormState,
FormTextInputProps,
FormRawProps,
} from './useFormState';
export { default as Form } from './Form';
export { default as ScrollView } from './ScrollView';
export type { ErrorUtility, BooleanUtility } from './types';
Expand Down
4 changes: 2 additions & 2 deletions src/useFormState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type { SetStateAction } from 'react';
import useRefState from './useRefState';
import { defaultLocale, getTranslation } from './translations/utils';

type FormTextInputProps = {
export type FormTextInputProps = {
testID: string;
value: string;
onBlur: TextInputProps['onBlur'];
Expand All @@ -43,7 +43,7 @@ type FormTextInputProps = {
label?: string;
};

type FormRawProps<V> = {
export type FormRawProps<V> = {
testID: string;
value: V;
onChange: (v: V) => void;
Expand Down

0 comments on commit de645ef

Please sign in to comment.