Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don’t require
getCollection()
filter to be a type guard
Commit dabce6b (withastro#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 <[email protected]>
- Loading branch information