Closed
Description
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