From 9a3f4b6f46659adea1f5d316340f444979109ad7 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 29 Jan 2025 16:05:31 -0500 Subject: [PATCH] Add `@ts-expect-error` for "Type instantiation is excessively deep" error --- packages/composable-controller/src/ComposableController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/composable-controller/src/ComposableController.ts b/packages/composable-controller/src/ComposableController.ts index b8f67822455..c0c381295dc 100644 --- a/packages/composable-controller/src/ComposableController.ts +++ b/packages/composable-controller/src/ComposableController.ts @@ -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; }); },