astro/.changeset/rotten-dogs-hide.md
Anders Kaseorg 12c68343c0
fix: Don’t require getCollection() filter to be a type guard (#5998)
Commit dabce6b8c6 (#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>
2023-01-26 21:03:09 -05:00

5 lines
99 B
Markdown

---
"astro": patch
---
Update `getCollection()` filter to support type guards _or_ unknown values