From 4d35ea17cda305bdbd0405ea1879ac2bc3784a1c Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 10 Sep 2021 13:33:29 +0700 Subject: [PATCH] Fix the `removeDirectoryIndex` option TypeScript type Fixes #154 --- index.d.ts | 2 +- readme.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index b2ab84e..caa264c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -226,7 +226,7 @@ export interface Options { //=> 'http://sindresorhus.com/foo' ``` */ - readonly removeDirectoryIndex?: ReadonlyArray; + readonly removeDirectoryIndex?: boolean | ReadonlyArray; /** Sorts the query parameters alphabetically by key. diff --git a/readme.md b/readme.md index b9f8bd5..fea18e8 100644 --- a/readme.md +++ b/readme.md @@ -242,7 +242,6 @@ normalizeUrl('https://sindresorhus.com/', {removeSingleSlash: false}); //=> 'https://sindresorhus.com/' ``` - ##### removeDirectoryIndex Type: `boolean | Array`\