Skip to content

Commit

Permalink
fix(role-helpers): refine logRoles fn types (#1249)
Browse files Browse the repository at this point in the history
* feat(role-helpers): refine logRoles fn types

* fix(role-helpers.d.ts): CR - use interface
  • Loading branch information
naorpeled authored Sep 3, 2023
1 parent ab9c3ae commit 5e03343
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion types/role-helpers.d.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5e03343

Please sign in to comment.