Skip to content

Typescript: can't use heading levels #61

Closed
@Hypnosphi

Description

@Hypnosphi
getByRole(document, 'heading', {level: 1})

gives following error:

TS2345: Argument of type '{ level: number; }' is not assignable to parameter of type 'RoleMatcherOptions'.   Object literal may only specify known properties, and 'level' does not exist in type 'RoleMatcherOptions'

You may want to reuse ByRoleOptions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions