mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
shelljs.test uses string literals for option param
Previously it was just string, which makes it hard to know which options are available.
This commit is contained in:
Vendored
+1
-1
@@ -97,7 +97,7 @@ export function mkdir(options: string, ...dir: Array<string | string[]>): void;
|
||||
* @param path The path.
|
||||
* @return See option parameter.
|
||||
*/
|
||||
export function test(option: string, path: string): boolean;
|
||||
export function test(option: "-b" | "-c" | "-d" | "-e" | "-f" | "-L" | "-p" | "-S", path: string): boolean;
|
||||
|
||||
/**
|
||||
* Returns a string containing the given file, or a concatenated string containing the files if more than one file is given (a new line character is introduced between each file). Wildcard * accepted.
|
||||
|
||||
Reference in New Issue
Block a user