Closed Hypnosphi closed 3 years ago
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
ByRoleOptions
thanks @Hypnosphi! PR welcome if anyone would like to contribute :)
gives following error:
You may want to reuse
ByRoleOptions