Skip to content

The type definition of removeDirectoryIndex is not correct #154

@Robot-Inventor

Description

@Robot-Inventor
normalizeUrl('www.sindresorhus.com/foo/default.php', { removeDirectoryIndex: true });
// Type 'true' is not assignable to type 'readonly (string | RegExp)[] | undefined'.

In readme.md, type of removeDirectoryIndex is boolean | Array<RegExp | string>, but in index.d.ts, it is ReadonlyArray<RegExp | string>.

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