Skip to content

Commit

Permalink
fix(angular): extract type from compodoc propertiesClass
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
yannbf committed Jul 12, 2021
1 parent 983ce9c commit ff483f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/docs/src/frameworks/angular/compodoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } : {};
Expand Down

0 comments on commit ff483f6

Please sign in to comment.