arrayiffy-if-string
Advanced tools
Comparing version 5.0.6 to 5.0.7
/** | ||
* @name arrayiffy-if-string | ||
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* @version 5.0.6 | ||
* @version 5.0.7 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * @license MIT |
/** | ||
* @name arrayiffy-if-string | ||
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* @version 5.0.6 | ||
* @version 5.0.7 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * @license MIT |
{ | ||
"name": "arrayiffy-if-string", | ||
"version": "5.0.6", | ||
"version": "5.0.7", | ||
"description": "Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
type StringInABox<T> = T extends "" | ||
? [] | ||
: string extends T | ||
? [] | [string] | ||
: T extends string | ||
? [T] | ||
: T; | ||
? [] | [string] | ||
: T extends string | ||
? [T] | ||
: T; | ||
declare function arrayiffy<T>(something: T): StringInABox<T>; | ||
export { arrayiffy }; |
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
10584