Skip to content

Commit 5e03343

Browse files
authored
fix(role-helpers): refine logRoles fn types (#1249)
* feat(role-helpers): refine logRoles fn types * fix(role-helpers.d.ts): CR - use interface
1 parent ab9c3ae commit 5e03343

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: types/role-helpers.d.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
export function logRoles(container: HTMLElement): string
1+
export function logRoles(
2+
container: HTMLElement,
3+
options?: LogRolesOptions,
4+
): string
5+
6+
interface LogRolesOptions {
7+
hidden?: boolean
8+
}
9+
210
export function getRoles(container: HTMLElement): {
311
[index: string]: HTMLElement[]
412
}
13+
514
/**
615
* https://testing-library.com/docs/dom-testing-library/api-helpers#isinaccessible
716
*/
817
export function isInaccessible(element: Element): boolean
18+
919
export function computeHeadingLevel(element: Element): number | undefined

0 commit comments

Comments
 (0)