Skip to content

Commit

Permalink
Add onBeforeInput attribute to type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
boarwell committed Aug 31, 2021
1 parent 38819b7 commit 061ffa9
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions src/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ export namespace JSXInternal {
onChangeCapture?: GenericEventHandler<Target>;
onInput?: GenericEventHandler<Target>;
onInputCapture?: GenericEventHandler<Target>;
onBeforeInput?: GenericEventHandler<Target>;
onBeforeInputCapture?: GenericEventHandler<Target>;
onSearch?: GenericEventHandler<Target>;
onSearchCapture?: GenericEventHandler<Target>;
onSubmit?: GenericEventHandler<Target>;
Expand Down Expand Up @@ -663,7 +665,14 @@ export namespace JSXInternal {
decoding?: 'sync' | 'async' | 'auto';
draggable?: boolean;
encType?: string;
enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
enterkeyhint?:
| 'enter'
| 'done'
| 'go'
| 'next'
| 'previous'
| 'search'
| 'send';
form?: string;
formAction?: string;
formEncType?: string;
Expand Down Expand Up @@ -721,7 +730,15 @@ export namespace JSXInternal {
radioGroup?: string;
readonly?: boolean;
readOnly?: boolean;
referrerpolicy?: 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
referrerpolicy?:
| 'no-referrer'
| 'no-referrer-when-downgrade'
| 'origin'
| 'origin-when-cross-origin'
| 'same-origin'
| 'strict-origin'
| 'strict-origin-when-cross-origin'
| 'unsafe-url';
rel?: string;
required?: boolean;
reversed?: boolean;
Expand Down Expand Up @@ -762,8 +779,20 @@ export namespace JSXInternal {
wrap?: string;

// Non-standard Attributes
autocapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
autocapitalize?:
| 'off'
| 'none'
| 'on'
| 'sentences'
| 'words'
| 'characters';
autoCapitalize?:
| 'off'
| 'none'
| 'on'
| 'sentences'
| 'words'
| 'characters';
disablePictureInPicture?: boolean;
results?: number;
translate?: 'yes' | 'no';
Expand Down

0 comments on commit 061ffa9

Please sign in to comment.