Skip to content

Support for functions in types for arrays #401

Open
@mvshvets

Description

@mvshvets

Currently, the function passed in the types parameter successfully processes only simple types. Is support for arrays expected to expand?

This will cause an error now "options.types[key].replace is not a function":

queryString.parse('double=3,6,4', {
    arrayFormat: 'comma',
    types: {
        double: value => value.toSorted(value),
    },
})

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