mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
When defining a generic type where a type argument is never used as a part of the type itself, TypeScript will consider two instances of the generic type with different values for the type to be the same. This caused the handle method to accept any handler for any Request/Event, ignoring the event/request type completely. Fix by specifying the constructor to return the intersection of the type itself and the Request/Event type.
Common Library for Clusterio
This package contains functionality shared between controller, host, ctl and/or plugins of Clusterio.
See the Clusterio repository for more information on Clusterio.