Skip to content

[Types] getAll() from cookie-universal-nuxt seems to be wrongly typesΒ #162

@randompch

Description

@randompch

Hi everyone,

I came across the getAll() type declaration (getAll: <T = CookieValue[]>) in the Nuxt module /cookie-universal-nuxt/types/index.d.ts#L32 and realized it may not have been properly typed πŸ€”

It doesn't actually return an array but an object, like in /cookie-universal/types/index.d.ts#L23.
I tested it, to double check.

Would a small PR to replace it be a good idea ?

getAll: <T = CookieValue[]> // ❌
getAll: <T = object> // βœ… 

Cheers πŸ’ͺ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions