From ff483f6028a376a391613a7f4b4b785531679782 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Mon, 12 Jul 2021 23:12:23 +0200 Subject: [PATCH] fix(angular): extract type from compodoc propertiesClass - An update has been released in compodoc 1.1.12 which changed how the componentData is filled. Now the propertiesClass is filled together with inputClass so the check has to be updated --- addons/docs/src/frameworks/angular/compodoc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/docs/src/frameworks/angular/compodoc.ts b/addons/docs/src/frameworks/angular/compodoc.ts index 08f8edd0ca62..d4de090bc0b2 100644 --- a/addons/docs/src/frameworks/angular/compodoc.ts +++ b/addons/docs/src/frameworks/angular/compodoc.ts @@ -190,7 +190,7 @@ export const extractArgTypesFromData = (componentData: Class | Directive | Injec const section = mapItemToSection(key, item); const defaultValue = isMethod(item) ? undefined : extractDefaultValue(item as Property); const type = - isMethod(item) || section !== 'inputs' + isMethod(item) || (section !== 'inputs' && section !== 'properties') ? { name: 'void' } : extractType(item as Property, defaultValue); const action = section === 'outputs' ? { action: item.name } : {};