diff --git a/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.test.ts b/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.test.ts index 87b95ffc4f9e..0d97c67bb7f5 100644 --- a/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.test.ts +++ b/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.test.ts @@ -325,8 +325,6 @@ describe('angular source decorator', () => { name: 'enum', required: true, value: [], - // Not allowed on the type - // summary: 'ButtonAccent', }, }, }; diff --git a/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.ts b/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.ts index 828af01dbd27..c10f600bd460 100644 --- a/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.ts +++ b/code/frameworks/angular/src/client/angular-beta/ComputesTemplateFromComponent.ts @@ -73,9 +73,7 @@ const createAngularInputProperty = ({ value: any; argType?: ArgTypes[string]; }) => { - // @ts-expect-error summary is not on the type, but it may be there in practice, need to find out - const { name: type = null, summary = null } = - (typeof argType?.type === 'object' && argType?.type) || {}; + const { name: type = null } = (typeof argType?.type === 'object' && argType?.type) || {}; let templateValue = type === 'enum' && !!summary ? `${summary}.${value}` : value; const actualType = type === 'enum' && summary ? 'enum' : typeof value;