Skip to content

Commit 33ec5e7

Browse files
committed
refactor(@angular/cli): remove unnecessary castings and types
1 parent 98984bf commit 33ec5e7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/angular/cli/src/command-builder/command-module.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ import {
1717
CommandModule as YargsCommandModule,
1818
Options as YargsOptions,
1919
} from 'yargs';
20-
import { Parser } from 'yargs/helpers';
20+
import { Parser as yargsParser } from 'yargs/helpers';
2121
import { createAnalytics } from '../analytics/analytics';
2222
import { AngularWorkspace } from '../utilities/config';
2323
import { Option } from './utilities/json-schema';
2424

25-
const yargsParser = Parser as unknown as typeof Parser.default & {
26-
camelCase(str: string): string;
27-
};
28-
2925
export type Options<T> = { [key in keyof T as CamelCaseKey<key>]: T[key] };
3026

3127
export enum CommandScope {

0 commit comments

Comments
 (0)