diff options
author | 2023-01-26 18:03:09 -0800 | |
---|---|---|
committer | 2023-01-26 21:03:09 -0500 | |
commit | 12c68343c0aa891037d39d3c9b9378b004be6642 (patch) | |
tree | 5134f2c6aef6bdf2f59f51bff731ee518fea2382 /examples/with-tailwindcss/src | |
parent | 5e3d538812793a952953e7bc1aa65010dd7538fa (diff) | |
download | astro-12c68343c0aa891037d39d3c9b9378b004be6642.tar.gz astro-12c68343c0aa891037d39d3c9b9378b004be6642.tar.zst astro-12c68343c0aa891037d39d3c9b9378b004be6642.zip |
fix: Don’t require `getCollection()` filter to be a type guard (#5998)
Commit dabce6b8c684f851c3535f8acead06cbef6dce2a (#5970) broke the use
of a plain boolean filter. Add an overload similar to TypeScript’s
Array#filter overload:
https://github.com/microsoft/TypeScript/blob/v4.9.4/lib/lib.es5.d.ts#L1442-L1453
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'examples/with-tailwindcss/src')
0 files changed, 0 insertions, 0 deletions