mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #32167 from CameronDiver/fix-shell-quote
Fix parse function return in shell-quote
This commit is contained in:
Vendored
+8
-1
@@ -1,12 +1,19 @@
|
||||
// Type definitions for shell-quote 1.6
|
||||
// Project: https://github.com/substack/node-shell-quote
|
||||
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
|
||||
// Cameron Diver <https://github.com/CameronDiver>
|
||||
// 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[];
|
||||
|
||||
Reference in New Issue
Block a user