Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit ba6dbe7

Browse files
committed
Add more types
1 parent 0e6c310 commit ba6dbe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function toggle(event: Event): void {
8282
}
8383
}
8484

85-
function findFocusElement(details, dialog): ?HTMLElement {
85+
function findFocusElement(details: Element, dialog: DetailsDialogElement): ?HTMLElement {
8686
const state = initialized.get(dialog)
8787
if (state && state.activeElement instanceof HTMLElement) {
8888
return state.activeElement
@@ -91,7 +91,7 @@ function findFocusElement(details, dialog): ?HTMLElement {
9191
}
9292
}
9393

94-
function toggleDetails(details, open) {
94+
function toggleDetails(details: Element, open: boolean) {
9595
// Don't update unless state is changing
9696
if (open === details.hasAttribute('open')) return
9797

0 commit comments

Comments
 (0)