Skip to content

Commit

Permalink
Merge pull request #15491 from stefan-schweiger/15490-numeric-default…
Browse files Browse the repository at this point in the history
…-value

Addon-docs/Angular: Fix numeric args default value handling
  • Loading branch information
shilman committed Jul 6, 2021
2 parents 209cdac + 5347593 commit 76d155e
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 76d155e

Please sign in to comment.