koba04 / swr-devtools

A DevTool for SWR
https://swr-devtools.vercel.app
MIT License
221 stars 3 forks source link

refactor: define message event objects sent by postMessage #25

Closed koba04 closed 3 years ago

koba04 commented 3 years ago

Currently, the event objects become the various types of objects, which is not type-safe and hard to track the communication between panels and contents. It would be nice if those has a concrete interface like { type: "***" , payload: { ... } }