Skip to content

Refactor core bridger library in typescript

Jared Pereira requested to merge typescriptBridger into unify-pages

Feature Merge Request

Related Issue

Description of Feature

This MR changes the core-bridger library to a typescript class, which can be found in /lib/MessageHandler.ts. (I changed Claim to Message as I felt Claim was a little too specific, but this can be changed).

This is then imported wherever handlers are used, which gives us stronger type guarantees when using them.

Motivation and Context

I was spending a lot of time changing the core bridger library and whenever I would refactoring the App and CLI to deal with it would be a pain. This is especially true now that the app is getting larger.

Screenshots, Code, Links

Related Tasks

  • [ ]

What's Next?

Next is working on getting the rest of the App to be strongly typed (removing any where we can). I think this will be especially useful around the functions we are passing around the app.


Merge request reports