Skip to content

Commit

Permalink
Fix the removeDirectoryIndex option TypeScript type
Browse files Browse the repository at this point in the history
Fixes #154
  • Loading branch information
sindresorhus committed Sep 10, 2021
1 parent 44cfbcf commit 4d35ea1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export interface Options {
//=> 'http://sindresorhus.com/foo'
```
*/
readonly removeDirectoryIndex?: ReadonlyArray<RegExp | string>;
readonly removeDirectoryIndex?: boolean | ReadonlyArray<RegExp | string>;

/**
Sorts the query parameters alphabetically by key.
Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ normalizeUrl('https://sindresorhus.com/', {removeSingleSlash: false});
//=> 'https://sindresorhus.com/'
```


##### removeDirectoryIndex

Type: `boolean | Array<RegExp | string>`\
Expand Down

0 comments on commit 4d35ea1

Please sign in to comment.