Skip to content

Commit 4229491

Browse files
committed
Update types
1 parent ad0a181 commit 4229491

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

types/aria.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export interface Attributes {
231231
}
232232

233233
// 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 =
235235
| "alert"
236236
| "alertdialog"
237237
| "application"

types/html.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export namespace HTML {
135135

136136
interface FormAttributes<T extends EventTarget> extends GlobalAttributes<T> {
137137
"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>);
139139
autoComplete?: "on" | "off";
140140
encType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain";
141141
method?: "GET" | "POST" | "dialog";
@@ -820,8 +820,8 @@ export namespace HTML {
820820
}
821821

822822
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>;
825825

826826
// Input Events
827827
onBeforeInput?: EventHandler<Event, T>;

0 commit comments

Comments
 (0)