Skip to content

Commit

Permalink
Fixed numeric default value not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-schweiger committed Jul 6, 2021
1 parent 818ea94 commit 5347593
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/docs/src/frameworks/angular/compodoc.ts
Expand Up @@ -112,7 +112,9 @@ const displaySignature = (item: Method): string => {

const extractTypeFromValue = (defaultValue: any) => {
const valueType = typeof defaultValue;
return defaultValue || valueType === 'boolean' || valueType === 'string' ? valueType : null;
return defaultValue || valueType === 'number' || valueType === 'boolean' || valueType === 'string'
? valueType
: null;
};

const extractEnumValues = (compodocType: any) => {
Expand Down

0 comments on commit 5347593

Please sign in to comment.