mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
12c68343c0
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>
99 B
99 B
astro |
---|
patch |
Update getCollection()
filter to support type guards or unknown values