bbc / lrud

Left, Right, Up, Down. A spatial navigation library for devices with input via directional controls.
Apache License 2.0
98 stars 21 forks source link

Update to mitt 3 #105

Closed bwallberg closed 1 year ago

bwallberg commented 1 year ago

Updated the mitt library to version 3.0 and added the appropriate typing for it.

Description

I've updated the mitt library and added event types so develops can get type information for each individual event.

Motivation and Context

  1. So that developers can get prop types for events
  2. So that lrud won't have it's own mitt version in node_modules for developers who don't use a legacy version of mitt.

How Has This Been Tested?

  1. Tested in my own code base
  2. the unit tests.

Types of changes

Checklist:

bwallberg commented 1 year ago

PR not clean, I'll open a new one