Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don’t require getCollection() filter to be a type guard #5998

Merged
merged 1 commit into from
Jan 27, 2023

Commits on Jan 26, 2023

  1. 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]>
    andersk committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    6ae244d View commit details
    Browse the repository at this point in the history