chellimiller / chellimiller/web-projects
Create Events API
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to separate events from actions.
The `action-api` exists already, but there is no events API.
The `events-api` would probably need to include `@types/react` and/or `@types/react-dom`. It should include cover all events specified in the React `DOMAttributes` interface, with the exception of `children` and `dangerouslySetInnerHTML`.
I'm thinking events could be simplified. I'd like to have the `DOMAttributes` handled and the events wrapped in other event types.
For example, `onMouseMove` and `onTouchMove` might be treated the same and expose a similar event. Another consideration is creating an event for hotkeys.
The goal of this API is to provide a simple contract for events as they'd be eventually used to connect to actions.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.