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

Add missing clear method to Cache type definition #1936

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 20, 2022

  1. Add missing clear method to Cache type definition

    The Cache has been exposed since [1], which supposedly includes a
    .clear() method [2], which in turn is not actually present in the
    type definition [3]. This adds it to the type definition to align
    with the implementation.
    
    Since Map also contains a .clear() method [4], this shouldn't break
    the ability to pass that in as a map.
    
    [1] vercel#231
    [2] vercel#161 (comment)
    [3] vercel#161 (comment)
    [4] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/clear
    Vinnl committed Apr 20, 2022
    Configuration menu
    Copy the full SHA
    763c473 View commit details
    Browse the repository at this point in the history