Skip to content

Commit e7038d7

Browse files
committed
Rename BaldInputProps
1 parent c23b762 commit e7038d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/elements/FormInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { InputHTMLAttributes } from "react";
33
import { DefaultError, DefaultState, FormState } from "../form";
44
import { useListener } from "../hooks";
55

6-
type BaldInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "name" | "form" | "value" | "type">;
7-
86
export const DEFAULT_DIRTY_CLASS = "typed-form-dirty";
97
export const DEFAULT_ERROR_CLASS = "typed-form-error";
108

@@ -128,7 +126,9 @@ export function defaultDeserializer<T>(inputValue: string, inputChecked: boolean
128126
}
129127
}
130128

131-
export type FormInputProps<T extends object, K extends keyof T = keyof T, State = DefaultState, Error extends string = string> = BaldInputProps & {
129+
export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "name" | "form" | "value" | "type">;
130+
131+
export type FormInputProps<T extends object, K extends keyof T = keyof T, State = DefaultState, Error extends string = string> = InputProps & {
132132
form: FormState<T, State, Error>;
133133
name: K;
134134
serializer?: Serializer<FormInputValue<T, K>>;

0 commit comments

Comments
 (0)