From 199b5fd9c341b180e77296ab6ecb7fd3926cc879 Mon Sep 17 00:00:00 2001 From: Vojtech Jasny Date: Wed, 2 Aug 2017 21:09:15 +0200 Subject: [PATCH] Add correct types for glob options to shelljs (#18567) --- types/shelljs/index.d.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/types/shelljs/index.d.ts b/types/shelljs/index.d.ts index f2a74bc561..d2bc88875c 100644 --- a/types/shelljs/index.d.ts +++ b/types/shelljs/index.d.ts @@ -7,6 +7,7 @@ /// import child = require("child_process"); +import glob = require("glob"); /** * Changes to directory dir for the duration of the script @@ -524,10 +525,6 @@ export function touch(options: touchOptionsArray, files: string[]): void; // Configuration -export interface GlobOptions { - [key: string]: any; -} - export interface ShellConfig { /** * Suppresses all command output if true, except for echo() calls. Default is false. @@ -549,9 +546,9 @@ export interface ShellConfig { /** * Passed to glob.sync() instead of the default options ({}). - * @type {Object} + * @type {glob.IOptions} */ - globOptions: GlobOptions; + globOptions: glob.IOptions; /** * Absolute path of the Node binary. Default is null (inferred).