angular-cn/packages/common/test/pipes
Pete Bacon Darwin 1579df243d fix(core): ensure the type `T` of `EventEmitter<T>` can be inferred (#40644)
The `AsyncPipe.transform<T>(emitter)` method must infer the `T`
type from the `emitter` parameter. Since we changed the `AsyncPipe`
to expect a `Subscribable<T>` rather than `Observable<T>` the
`EventEmitter.subscribe()` method needs to have a tighter signature.
Otherwise TypeScript struggles to infer the type and ends up making
it `unknown`.

Fixes #40637

PR Close #40644
2021-02-03 09:07:29 -08:00
..
async_pipe_spec.ts fix(core): ensure the type `T` of `EventEmitter<T>` can be inferred (#40644) 2021-02-03 09:07:29 -08:00
case_conversion_pipes_spec.ts fix(common): let case conversion pipes accept type unions with `null` (#36259) (#37447) 2020-09-28 12:23:32 -04:00
date_pipe_spec.ts feat(common): stricter types for DatePipe (#37447) 2020-09-28 12:23:32 -04:00
i18n_plural_pipe_spec.ts fix(common): correct and simplify typing of I18nPluralPipe (#37447) 2020-09-28 12:23:32 -04:00
i18n_select_pipe_spec.ts fix(common): correct and simplify typing of I18nPluralPipe (#37447) 2020-09-28 12:23:32 -04:00
json_pipe_spec.ts feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
keyvalue_pipe_spec.ts fix(common): correct and simplify typing of `KeyValuePipe` (#37447) 2020-09-28 12:23:33 -04:00
number_pipe_spec.ts feat(common): stricter types for number pipes (#37447) 2020-09-28 12:23:32 -04:00
slice_pipe_spec.ts fix(common): correct typing and implementation of `SlicePipe` (#37447) 2020-09-28 12:23:33 -04:00