2020-04-01 23:38:07 +13:00
|
|
|
import { eventHandlers } from "../../../../client/src/state/eventHandlers"
|
|
|
|
export { EVENT_TYPE_MEMBER_NAME } from "../../../../client/src/state/eventHandlers"
|
2019-10-19 05:32:03 +13:00
|
|
|
|
2020-06-02 08:26:32 +12:00
|
|
|
export const allHandlers = () => {
|
|
|
|
const handlersObj = eventHandlers()
|
2020-05-07 21:53:34 +12:00
|
|
|
|
|
|
|
const handlers = Object.keys(handlersObj).map(name => ({
|
|
|
|
name,
|
|
|
|
...handlersObj[name],
|
|
|
|
}))
|
|
|
|
|
|
|
|
return handlers
|
2020-02-03 22:24:25 +13:00
|
|
|
}
|