Skip to content

Add ARIA attribute typings #3853

Open
Open
@andrewiggins

Description

@andrewiggins

Describe the feature you'd love to see

React typings have ARIA attributes defined providing stronger typing for the expected values of aria attributes. I think it'd be nice if we provided something similar, give people using TypeScript or people writing JS in an editor that uses TS for completions a nicer experience.

Additional context (optional)
Here is an example of the kind of feedback TypeScript can provide with proper aria typings.
https://www.typescriptlang.org/play?ts=4.9.4#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgIilQ3wG4AoNCAOwGd4ATOAXjgB4HgA3OFKYFAFoUAVxgQq4ADZIYSZvloMpmfHAD0APlJA

Perhaps worth exploring if we can reuse anything from TypeScript's lib.dom.d.ts assuming it's typings match what we do.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions