Skip to content

Commit

Permalink
Add @ts-expect-error for "Type instantiation is excessively deep" e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
MajorLift committed Jan 29, 2025
1 parent a098f82 commit af99108
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/composable-controller/src/ComposableController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export class ComposableController<
(childState: StateConstraint) => {
this.update((state) => {
// Type assertion is necessary for property assignment to a generic type. This does not pollute or widen the type of the asserted variable.
// @ts-expect-error "Type instantiation is excessively deep"
(state as ComposableControllerStateConstraint)[name] = childState;
});
},
Expand Down

0 comments on commit af99108

Please sign in to comment.