File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ export interface Attributes {
231
231
}
232
232
233
233
// All the WAI-ARIA 1.2 role attribute values from https://www.w3.org/TR/wai-aria-1.2/#role_definitions
234
- type Role =
234
+ export type Role =
235
235
| "alert"
236
236
| "alertdialog"
237
237
| "application"
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export namespace HTML {
135
135
136
136
interface FormAttributes < T extends EventTarget > extends GlobalAttributes < T > {
137
137
"accept-charset" ?: string ;
138
- action : string | ( /* Mono specific */ ( data : FormData ) => void | Promise < void > ) ;
138
+ action : string | ( /* mono-jsx specific */ ( data : FormData , event : SubmitEvent ) => void | Promise < void > ) ;
139
139
autoComplete ?: "on" | "off" ;
140
140
encType ?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" ;
141
141
method ?: "GET" | "POST" | "dialog" ;
@@ -820,8 +820,8 @@ export namespace HTML {
820
820
}
821
821
822
822
interface EventAttributes < T extends EventTarget > {
823
- // Mono specific
824
- onMount ?: ( e : { type : "mount" ; target : T } ) => void | Promise < void > ;
823
+ // mono-jsx specific
824
+ onMount ?: ( e : { type : "mount" ; currentTarget : T ; target : T } ) => void | Promise < void > ;
825
825
826
826
// Input Events
827
827
onBeforeInput ?: EventHandler < Event , T > ;
You can’t perform that action at this time.
0 commit comments