diff --git a/types/role-helpers.d.ts b/types/role-helpers.d.ts index 0b5b9124..fe14c13a 100644 --- a/types/role-helpers.d.ts +++ b/types/role-helpers.d.ts @@ -1,9 +1,19 @@ -export function logRoles(container: HTMLElement): string +export function logRoles( + container: HTMLElement, + options?: LogRolesOptions, +): string + +interface LogRolesOptions { + hidden?: boolean +} + export function getRoles(container: HTMLElement): { [index: string]: HTMLElement[] } + /** * https://testing-library.com/docs/dom-testing-library/api-helpers#isinaccessible */ export function isInaccessible(element: Element): boolean + export function computeHeadingLevel(element: Element): number | undefined