Skip to content

Commit

Permalink
Add @ts-expect-error directives as hotfix for mismatch between `Con…
Browse files Browse the repository at this point in the history
…trollers` type members and `BaseControllerV1Instance` type
  • Loading branch information
MajorLift committed Jun 18, 2024
1 parent 093375d commit ee088b1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/core/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,12 @@ class Engine {
/**
* ComposableController reference containing all child controllers
*/
datamodel: any;
datamodel: ComposableController<
EngineState,
// TODO: Remove once `BaseControllerV1Instance` type is updated in composable-controller
// @ts-expect-error Hotfix for mismatch between `Controllers` type properties and `BaseControllerV1Instance` type
Controllers[keyof Controllers],
>;

/**
* Object containing the info for the latest incoming tx block
Expand Down Expand Up @@ -1354,7 +1359,9 @@ class Engine {

this.datamodel = new ComposableController<
EngineState,
Controllers[keyof Controllers]
// TODO: Remove once `BaseControllerV1Instance` type is updated in composable-controller
// @ts-expect-error Hotfix for mismatch between `Controllers` type properties and `BaseControllerV1Instance` type
Controllers[keyof Controllers],
>({
controllers,
messenger: this.controllerMessenger.getRestricted({
Expand Down

0 comments on commit ee088b1

Please sign in to comment.