ts-commons
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -0,1 +1,2 @@ | ||
export declare type NullableString = string | undefined | null; | ||
export declare class StringUtils { | ||
@@ -14,3 +15,3 @@ static readonly EMPTY: string; | ||
*/ | ||
static isEmpty(str: string | undefined | null): boolean; | ||
static isEmpty(str: NullableString): boolean; | ||
/** | ||
@@ -26,3 +27,3 @@ * check current string is not empty. | ||
*/ | ||
static isNotEmpty(str: string | undefined | null): boolean; | ||
static isNotEmpty(str: NullableString): str is NonNullable<NullableString>; | ||
/** | ||
@@ -38,3 +39,3 @@ * check current string is blank. | ||
*/ | ||
static isBlank(str: string | undefined | null): boolean; | ||
static isBlank(str: NullableString): boolean; | ||
/** | ||
@@ -50,3 +51,3 @@ * check current string is not blank. | ||
*/ | ||
static isNotBlank(str: string | undefined | null): boolean; | ||
static isNotBlank(str: NullableString): str is NonNullable<NullableString>; | ||
/** | ||
@@ -53,0 +54,0 @@ * Removes all leading and trailing white-space characters from the current string. |
{ | ||
"name": "ts-commons", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "common methods for typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
2273
0
126042
43