chellimiller / chellimiller/web-projects

Create Events API

Open
#2 1 comment 0 reactions 1 assignee Claimed by @chellimiller View on GitHub
enhancement
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.