angular-cn/packages/common/test/pipes
Andrea Canciani 4744c229db fix(common): correct typing and implementation of `SlicePipe` (#37447)
Even in the overloads, state that it can accept `null` and
`undefined`, in order to ensure easy composition with `async`.

Additionally, change the implementation to return `null` on an
`undefined` input, for consistency with other pipes.

BREAKING CHANGE:
The `slice` pipe now returns `null` for the `undefined` input value,
which is consistent with the behavior of most pipes. If you rely on
`undefined` being the result in that case, you now need to check for it
explicitly.

PR Close #37447
2020-09-28 12:23:33 -04:00
..
async_pipe_spec.ts fix(common): correct and simplify typing of AsyncPipe (#37447) 2020-09-28 12:23:32 -04: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