We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cb8818 commit 3726abfCopy full SHA for 3726abf
packages/@angular/cli/tasks/schematic-get-options.ts
@@ -37,6 +37,14 @@ export default Task.extend({
37
case 'boolean':
38
type = Boolean;
39
break;
40
+ case 'integer':
41
+ case 'number':
42
+ type = Number;
43
+ break;
44
+
45
+ // Ignore arrays / objects.
46
+ default:
47
+ return null;
48
}
49
let aliases: string[] = [];
50
if (opt.alias) {
@@ -52,7 +60,8 @@ export default Task.extend({
52
60
type,
53
61
default: undefined // do not carry over schematics defaults
54
62
};
55
- });
63
+ })
64
+ .filter(x => x);
56
65
57
66
return Promise.resolve(availableOptions);
58
67
0 commit comments