Skip to content

"keysToSkip" should accept readonly arrays #359

@skyfighteer

Description

@skyfighteer
const keysToSkip = ["value"] as const;
const changeset = diff(storedConfiguration, defaultConfiguration, { keysToSkip: keysToSkip });

this throws an error, as only string[] is accepted. I don't see a reason why don't accept readonly arrays as well.

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