File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
etc/api/angular_devkit/schematics/tasks
packages/angular_devkit/schematics/tasks/package-manager Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export declare class NodePackageInstallTask implements TaskConfigurationGenerato
4
4
packageName ?: string ;
5
5
quiet : boolean ;
6
6
workingDirectory ?: string ;
7
- constructor ( options : Partial < NodePackageInstallTaskOptions > ) ;
7
+ constructor ( options : NodePackageInstallTaskOptions ) ;
8
8
constructor ( workingDirectory ?: string ) ;
9
9
toConfiguration ( ) : TaskConfiguration < NodePackageTaskOptions > ;
10
10
}
Original file line number Diff line number Diff line change 8
8
import { TaskConfiguration , TaskConfigurationGenerator } from '../../src' ;
9
9
import { NodePackageName , NodePackageTaskOptions } from './options' ;
10
10
11
- // TODO: This should be an interface but that would change the public API
12
- export class NodePackageInstallTaskOptions {
13
- packageManager ! : string ;
14
- packageName ! : string ;
15
- workingDirectory ! : string ;
16
- quiet ! : boolean ;
17
- hideOutput ! : boolean ;
11
+ interface NodePackageInstallTaskOptions {
12
+ packageManager ?: string ;
13
+ packageName ?: string ;
14
+ workingDirectory ?: string ;
15
+ quiet ?: boolean ;
16
+ hideOutput ?: boolean ;
18
17
}
19
18
20
19
export class NodePackageInstallTask implements TaskConfigurationGenerator < NodePackageTaskOptions > {
@@ -25,8 +24,8 @@ export class NodePackageInstallTask implements TaskConfigurationGenerator<NodePa
25
24
packageName ?: string ;
26
25
27
26
constructor ( workingDirectory ?: string ) ;
28
- constructor ( options : Partial < NodePackageInstallTaskOptions > ) ;
29
- constructor ( options ?: string | Partial < NodePackageInstallTaskOptions > ) {
27
+ constructor ( options : NodePackageInstallTaskOptions ) ;
28
+ constructor ( options ?: string | NodePackageInstallTaskOptions ) {
30
29
if ( typeof options === 'string' ) {
31
30
this . workingDirectory = options ;
32
31
} else if ( typeof options === 'object' ) {
You can’t perform that action at this time.
0 commit comments