mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Create a TestOptions type for test's options
This commit is contained in:
Vendored
+3
-1
@@ -97,7 +97,9 @@ export function mkdir(options: string, ...dir: Array<string | string[]>): void;
|
||||
* @param path The path.
|
||||
* @return See option parameter.
|
||||
*/
|
||||
export function test(option: "-b" | "-c" | "-d" | "-e" | "-f" | "-L" | "-p" | "-S", path: string): boolean;
|
||||
export function test(option: TestOptions, path: string): boolean;
|
||||
|
||||
export type TestOptions = "-b" | "-c" | "-d" | "-e" | "-f" | "-L" | "-p" | "-S";
|
||||
|
||||
/**
|
||||
* 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