angular-docs-cn/tools/public_api_guard/core
cexbrayat 41cd8f3efb refactor(core): use Partial<T> for MetadataOverride (#24103)
Allows to write:

const fixture = TestBed
      .overridePipe(DisplayNamePipe, { set: { pure: false } })
      .createComponent(MenuComponent);

when you only want to set the `pure` metadata,
instead of currently:

const fixture = TestBed
      .overridePipe(DisplayNamePipe, { set: { name: 'displayName', pure: false } })
      .createComponent(MenuComponent);

which forces you to redefine the name of the pipe even if it is useless.

Fixes #24102

PR Close #24103
2018-05-29 18:40:05 -04:00
..
core.d.ts Revert "refactor(core): tree-shake application_module providers (#23477)" 2018-04-26 14:08:13 -07:00
testing.d.ts refactor(core): use Partial<T> for MetadataOverride (#24103) 2018-05-29 18:40:05 -04:00