mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
If using `strictFunctionTypes: true` in `tsconfig.json`, the default e2e test is failing compilation with: ``` error TS2345: Argument of type 'ObjectContaining<{ level: Level; }>' is not assignable to parameter of type 'Expected<Entry>'. Type 'ObjectContaining<{ level: Level; }>' is not assignable to type 'ObjectContaining<Entry>'. Type 'Partial<{ level: Level; }>' is not assignable to type 'Partial<Entry>'. Type '{ level: Level; }' is not assignable to type 'Entry'. ``` Explictely using `as logging.Entry` fixes the issue.