15 lines
257 B
TypeScript
15 lines
257 B
TypeScript
export interface FormField<T> {
|
|
name: string
|
|
value: T
|
|
label?: string | null
|
|
placeholder?: string | null
|
|
onValid: (value: T) => void
|
|
onInvalid: () => void
|
|
}
|
|
|
|
export interface SignupForm {
|
|
email: string
|
|
birthdate: string
|
|
birthtime: string
|
|
}
|