angular-cn/packages/common/test/pipes
JoostK d783519835 fix(common): let `KeyValuePipe` accept type unions with `null` (#36093)
`KeyValuePipe` currently accepts `null` values as well as `Map`s and a
few others. However, due to the way in which TS overloads work, a type
of `T|null` will not be accepted by `KeyValuePipe`'s signatures, even
though both `T` and `null` individually would be.

To make this work, each signature that accepts some type `T` has been
duplicated with a second one below it that accepts a `T|null` and
includes `null` in its return type.

Fixes #35743

PR Close #36093
2020-03-24 14:41:41 -07:00
..
async_pipe_spec.ts style: enforce disallowance of object constructor (#33211) 2019-12-03 10:08:25 -08:00
case_conversion_pipes_spec.ts fix(common): titlecase pipe (#22600) 2018-03-23 13:42:51 -04:00
date_pipe_spec.ts refactor(common): move the low level locale registering to core (#33523) 2019-11-05 17:26:59 +00:00
i18n_plural_pipe_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
i18n_select_pipe_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
json_pipe_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
keyvalue_pipe_spec.ts fix(common): let `KeyValuePipe` accept type unions with `null` (#36093) 2020-03-24 14:41:41 -07:00
number_pipe_spec.ts feat(common): allow default currency code to be configurable (#32584) 2020-01-13 09:57:06 -08:00
slice_pipe_spec.ts feat(common): stricter types for SlicePipe (#30156) 2019-05-17 14:21:36 -07:00