File tree 2 files changed +9
-3
lines changed
packages/schematics/angular/utility
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,14 @@ export function getProject<TProjectType extends ProjectType = ProjectType.Applic
35
35
return workspace . projects [ projectName ] as WorkspaceProject < TProjectType > ;
36
36
}
37
37
38
- export function isWorkspaceSchema ( workspace : unknown ) : workspace is WorkspaceSchema {
38
+ // TODO(hans): change this any to unknown when google3 supports TypeScript 3.0.
39
+ // tslint:disable-next-line:no-any
40
+ export function isWorkspaceSchema ( workspace : any ) : workspace is WorkspaceSchema {
39
41
return ! ! ( workspace && ( workspace as WorkspaceSchema ) . projects ) ;
40
42
}
41
43
42
- export function isWorkspaceProject ( project : unknown ) : project is WorkspaceProject {
44
+ // TODO(hans): change this any to unknown when google3 supports TypeScript 3.0.
45
+ // tslint:disable-next-line:no-any
46
+ export function isWorkspaceProject ( project : any ) : project is WorkspaceProject {
43
47
return ! ! ( project && ( project as WorkspaceProject ) . projectType ) ;
44
48
}
Original file line number Diff line number Diff line change @@ -146,5 +146,7 @@ export interface WorkspaceTargets<TProjectType extends ProjectType = ProjectType
146
146
e2e ?: E2EBuilderTarget ;
147
147
'app-shell' ?: AppShellBuilderTarget ;
148
148
'extract-i18n' ?: ExtractI18nBuilderTarget ;
149
- [ key : string ] : unknown ;
149
+ // TODO(hans): change this any to unknown when google3 supports TypeScript 3.0.
150
+ // tslint:disable-next-line:no-any
151
+ [ key : string ] : any ;
150
152
}
You can’t perform that action at this time.
0 commit comments