* types: update `TextareaHTMLAttributes` and `InputHTMLAttributes`
add `InputTypeHTMLAttribute` (from `@types/react`) to `InputHTMLAttributes['type' ]`
* chore: format
---------
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
datetime?: string
}
+export type InputTypeHTMLAttribute =
+ | 'button'
+ | 'checkbox'
+ | 'color'
+ | 'date'
+ | 'datetime-local'
+ | 'email'
+ | 'file'
+ | 'hidden'
+ | 'image'
+ | 'month'
+ | 'number'
+ | 'password'
+ | 'radio'
+ | 'range'
+ | 'reset'
+ | 'search'
+ | 'submit'
+ | 'tel'
+ | 'text'
+ | 'time'
+ | 'url'
+ | 'week'
+ | (string & {})
+
export interface InputHTMLAttributes extends HTMLAttributes {
accept?: string
alt?: string
size?: Numberish
src?: string
step?: Numberish
- type?: string
+ type?: InputTypeHTMLAttribute
value?: any // we support :value to be bound to anything w/ v-model
width?: Numberish
}
minlength?: Numberish
name?: string
placeholder?: string
- readonly?: boolean
+ readonly?: Booleanish
required?: Booleanish
rows?: Numberish
value?: string | string[] | number