@types/shelljs
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -9,2 +9,3 @@ // Type definitions for ShellJS 0.8 | ||
// ExE Boss <https://github.com/ExE-Boss> | ||
// Mirco Sanguineti <https://github.com/msanguineti> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -969,2 +970,47 @@ | ||
export interface ShellStringConstructor { | ||
/** | ||
* Wraps a string (or array) value. This has all the string (or array) methods, | ||
* but also exposes extra methods: `.to()`, `.toEnd()`, and all the pipe-able | ||
* methods (ex. `.cat()`, `.grep()`, etc.). | ||
* | ||
* This can be easily converted into a string by calling `.toString()`. | ||
* | ||
* This type also exposes the corresponding command's stdout, stderr, and return status | ||
* code via the `.stdout` (string), `.stderr` (string), and `.code` (number) properties | ||
* respectively. | ||
* | ||
* Construct signature allows for: | ||
* | ||
* var foo = new ShellString('hello world'); | ||
* | ||
* as per example in shelljs docs: | ||
* https://github.com/shelljs/shelljs#shellstringstr | ||
* | ||
* @param value The string value to wrap. | ||
* @return A string-like object with special methods. | ||
*/ | ||
new(value: string): ShellString; | ||
new(value: string[]): ShellArray; | ||
/** | ||
* Wraps a string (or array) value. This has all the string (or array) methods, | ||
* but also exposes extra methods: `.to()`, `.toEnd()`, and all the pipe-able | ||
* methods (ex. `.cat()`, `.grep()`, etc.). | ||
* | ||
* This can be easily converted into a string by calling `.toString()`. | ||
* | ||
* This type also exposes the corresponding command's stdout, stderr, and return status | ||
* code via the `.stdout` (string), `.stderr` (string), and `.code` (number) properties | ||
* respectively. | ||
* | ||
* @param value The string value to wrap. | ||
* @return A string-like object with special methods. | ||
*/ | ||
(value: string): ShellString; | ||
(value: string[]): ShellArray; | ||
} | ||
export const ShellString: ShellStringConstructor; | ||
export interface ChmodFunction { | ||
@@ -971,0 +1017,0 @@ /** |
@@ -42,2 +42,3 @@ import shelljs = require('./index'); | ||
const uniq: typeof shelljs.uniq; | ||
const ShellString: typeof shelljs.ShellString; | ||
} |
{ | ||
"name": "@types/shelljs", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "TypeScript definitions for ShellJS", | ||
@@ -36,2 +36,7 @@ "license": "MIT", | ||
"githubUsername": "ExE-Boss" | ||
}, | ||
{ | ||
"name": "Mirco Sanguineti", | ||
"url": "https://github.com/msanguineti", | ||
"githubUsername": "msanguineti" | ||
} | ||
@@ -51,4 +56,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "6c78de6ad50a8081d0265b32115501992f9425cc5b24aa9411b111311d385190", | ||
"typesPublisherContentHash": "92e38e1edf88d2b93d36639a94deaaab5bd156fe9ed3816376d3d63c07ed4baa", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 01 Apr 2019 20:39:57 GMT | ||
* Last updated: Mon, 15 Apr 2019 17:11:36 GMT | ||
* Dependencies: @types/glob, @types/node | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Niklas Mollenhauer <https://github.com/nikeee>, Vojtech Jasny <https://github.com/voy>, George Kalpakas <https://github.com/gkalpak>, Paul Huynh <https://github.com/pheromonez>, Alexander Futász <https://github.com/aldafu>, ExE Boss <https://github.com/ExE-Boss>. | ||
These definitions were written by Niklas Mollenhauer <https://github.com/nikeee>, Vojtech Jasny <https://github.com/voy>, George Kalpakas <https://github.com/gkalpak>, Paul Huynh <https://github.com/pheromonez>, Alexander Futász <https://github.com/aldafu>, ExE Boss <https://github.com/ExE-Boss>, Mirco Sanguineti <https://github.com/msanguineti>. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
47389
1171
0