From 99df7eac6b8254d30af2b2b5cf63b6c057e5d0d9 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Tue, 15 Jan 2019 12:38:41 +0000 Subject: [PATCH] Fix parse function return in shell-quote Signed-off-by: Cameron Diver --- types/shell-quote/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/shell-quote/index.d.ts b/types/shell-quote/index.d.ts index 51e197618d..d6fa00af7f 100644 --- a/types/shell-quote/index.d.ts +++ b/types/shell-quote/index.d.ts @@ -1,12 +1,19 @@ // Type definitions for shell-quote 1.6 // Project: https://github.com/substack/node-shell-quote // Definitions by: Jason Cheatham +// Cameron Diver // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +export type ParseEntry = + | string + | { op: string } + | { op: 'glob'; pattern: string } + | { comment: string }; + export function quote(args: string[]): string; export function parse( cmd: string, env?: { [key: string]: string } | ((key: string) => string | object), opts?: { [key: string]: string } -): string[]; +): ParseEntry[];