From c61561ab38ba8554f292a0c0b4d2db6885294ebe Mon Sep 17 00:00:00 2001 From: Teppei Sato Date: Mon, 6 Jan 2020 17:26:06 +0900 Subject: [PATCH] Fix TypeScript type for the `expandDirectories` option (#138) --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 434931d..abec630 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,8 +4,8 @@ import {Options as FastGlobOptions} from 'fast-glob'; declare namespace globby { type ExpandDirectoriesOption = | boolean - | ReadonlyArray - | {files: readonly string[]; extensions: readonly string[]}; + | readonly string[] + | {files?: readonly string[]; extensions?: readonly string[]}; interface GlobbyOptions extends FastGlobOptions { /**