@types/shelljs
Advanced tools
Comparing version 0.8.10 to 0.8.11
@@ -14,4 +14,4 @@ // Type definitions for ShellJS 0.8 | ||
import child = require("child_process"); | ||
import glob = require("glob"); | ||
import child = require('child_process'); | ||
import glob = require('glob'); | ||
@@ -255,3 +255,3 @@ /** | ||
export type TestOptions = "-b" | "-c" | "-d" | "-e" | "-f" | "-L" | "-p" | "-S"; | ||
export type TestOptions = '-b' | '-c' | '-d' | '-e' | '-f' | '-L' | '-p' | '-S'; | ||
@@ -297,14 +297,4 @@ export interface CatFunction { | ||
*/ | ||
( | ||
options: string, | ||
searchRegex: string | RegExp, | ||
replacement: string, | ||
files: string[] | ||
): ShellString; | ||
( | ||
options: string, | ||
searchRegex: string | RegExp, | ||
replacement: string, | ||
...files: string[] | ||
): ShellString; | ||
(options: string, searchRegex: string | RegExp, replacement: string, files: string[]): ShellString; | ||
(options: string, searchRegex: string | RegExp, replacement: string, ...files: string[]): ShellString; | ||
@@ -320,12 +310,4 @@ /** | ||
*/ | ||
( | ||
searchRegex: string | RegExp, | ||
replacement: string, | ||
files: string[] | ||
): ShellString; | ||
( | ||
searchRegex: string | RegExp, | ||
replacement: string, | ||
...files: string[] | ||
): ShellString; | ||
(searchRegex: string | RegExp, replacement: string, files: string[]): ShellString; | ||
(searchRegex: string | RegExp, replacement: string, ...files: string[]): ShellString; | ||
} | ||
@@ -359,12 +341,4 @@ | ||
*/ | ||
( | ||
options: string, | ||
regex_filter: string | RegExp, | ||
files: string[] | ||
): ShellString; | ||
( | ||
options: string, | ||
regex_filter: string | RegExp, | ||
...files: string[] | ||
): ShellString; | ||
(options: string, regex_filter: string | RegExp, files: string[]): ShellString; | ||
(options: string, regex_filter: string | RegExp, ...files: string[]): ShellString; | ||
@@ -401,5 +375,5 @@ /** | ||
* @param command The command to search for. | ||
* @return Returns string containing the absolute path to the command. | ||
* @return Returns string containing the absolute path to the command or `null` if it couldn't be found. | ||
*/ | ||
export function which(command: string): ShellString; | ||
export function which(command: string): ShellString | null; | ||
@@ -451,3 +425,3 @@ export interface EchoFunction { | ||
*/ | ||
(options: string, dir: "+N"): ShellArray; | ||
(options: string, dir: '+N'): ShellArray; | ||
@@ -466,3 +440,3 @@ /** | ||
*/ | ||
(options: string, dir: "-N"): ShellArray; | ||
(options: string, dir: '-N'): ShellArray; | ||
@@ -491,3 +465,3 @@ /** | ||
*/ | ||
(dir: "+N"): ShellArray; | ||
(dir: '+N'): ShellArray; | ||
@@ -502,3 +476,3 @@ /** | ||
*/ | ||
(dir: "-N"): ShellArray; | ||
(dir: '-N'): ShellArray; | ||
@@ -553,3 +527,3 @@ /** | ||
*/ | ||
(options: string, dir: "+N"): ShellArray; | ||
(options: string, dir: '+N'): ShellArray; | ||
@@ -570,3 +544,3 @@ /** | ||
*/ | ||
(options: string, dir: "-N"): ShellArray; | ||
(options: string, dir: '-N'): ShellArray; | ||
@@ -599,3 +573,3 @@ /** | ||
*/ | ||
(dir: "+N"): ShellArray; | ||
(dir: '+N'): ShellArray; | ||
@@ -612,3 +586,3 @@ /** | ||
*/ | ||
(dir: "-N"): ShellArray; | ||
(dir: '-N'): ShellArray; | ||
@@ -662,3 +636,3 @@ /** | ||
*/ | ||
(options: "-c"): ShellArray; | ||
(options: '-c'): ShellArray; | ||
@@ -672,3 +646,3 @@ /** | ||
*/ | ||
(options: "+N"): ShellString; | ||
(options: '+N'): ShellString; | ||
@@ -682,3 +656,3 @@ /** | ||
*/ | ||
(options: "-N"): ShellString; | ||
(options: '-N'): ShellString; | ||
@@ -788,6 +762,3 @@ /** | ||
*/ | ||
( | ||
command: string, | ||
options: ExecOptions & { async: true } | ||
): child.ChildProcess; | ||
(command: string, options: ExecOptions & { async: true }): child.ChildProcess; | ||
@@ -811,7 +782,3 @@ /** | ||
*/ | ||
( | ||
command: string, | ||
options: ExecOptions, | ||
callback: ExecCallback | ||
): child.ChildProcess; | ||
(command: string, options: ExecOptions, callback: ExecCallback): child.ChildProcess; | ||
@@ -846,3 +813,3 @@ /** | ||
/** The process standard error output. */ | ||
stderr: string | ||
stderr: string, | ||
) => any; | ||
@@ -1018,4 +985,4 @@ | ||
*/ | ||
new(value: string): ShellString; | ||
new(value: string[]): ShellArray; | ||
new (value: string): ShellString; | ||
new (value: string[]): ShellArray; | ||
@@ -1117,18 +1084,12 @@ /** | ||
export type TouchOptionsLiteral = "-a" | "-c" | "-m" | "-d" | "-r"; | ||
export type TouchOptionsLiteral = '-a' | '-c' | '-m' | '-d' | '-r'; | ||
export interface TouchOptionsArray { | ||
"-d"?: string | undefined; | ||
"-r"?: string | undefined; | ||
'-d'?: string | undefined; | ||
'-r'?: string | undefined; | ||
} | ||
export interface TouchFunction { | ||
( | ||
options: TouchOptionsLiteral | TouchOptionsArray, | ||
files: string[] | ||
): ShellString; | ||
( | ||
options: TouchOptionsLiteral | TouchOptionsArray, | ||
...files: string[] | ||
): ShellString; | ||
(options: TouchOptionsLiteral | TouchOptionsArray, files: string[]): ShellString; | ||
(options: TouchOptionsLiteral | TouchOptionsArray, ...files: string[]): ShellString; | ||
@@ -1147,3 +1108,3 @@ (files: string[]): ShellString; | ||
/** Show the first <num> lines of the files. */ | ||
"-n": number; | ||
'-n': number; | ||
} | ||
@@ -1196,3 +1157,3 @@ | ||
/** Show the last <num> lines of files. */ | ||
"-n": number; | ||
'-n': number; | ||
} | ||
@@ -1199,0 +1160,0 @@ |
{ | ||
"name": "@types/shelljs", | ||
"version": "0.8.10", | ||
"version": "0.8.11", | ||
"description": "TypeScript definitions for ShellJS", | ||
@@ -56,4 +56,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shelljs", | ||
}, | ||
"typesPublisherContentHash": "255491f13c982a5e26cb75895f07ce11a4832492d135799087bdce370afa9005", | ||
"typesPublisherContentHash": "3ff98acd4841695c792a6aa6633f8514b731c6d9fef3af3fef596a9c358502c7", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 16 Dec 2021 22:32:06 GMT | ||
* Last updated: Thu, 13 Jan 2022 04:01:33 GMT | ||
* Dependencies: [@types/glob](https://npmjs.com/package/@types/glob), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50019
1140