diff --git a/addons/docs/src/frameworks/angular/compodoc.ts b/addons/docs/src/frameworks/angular/compodoc.ts index a3418ed4c26d..08f8edd0ca62 100644 --- a/addons/docs/src/frameworks/angular/compodoc.ts +++ b/addons/docs/src/frameworks/angular/compodoc.ts @@ -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) => {