@mll-lab/js-utils 2.34.0 → 2.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +14 -9
- package/dist/index.common.js.map +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/dist/typeGuards.d.ts +5 -3
- package/package.json +1 -1
package/dist/typeGuards.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export declare function isString(value: unknown): value is string;
|
|
2
|
-
export declare function isNonEmptyString(value: unknown): value is Exclude<string, ''>;
|
|
3
|
-
export declare function isNotNullish<T>(value: T): value is NonNullable<T>;
|
|
4
1
|
export declare function isArrayOfStrings(value: unknown): value is Array<string>;
|
|
5
2
|
export declare function isEmptyObject(value: unknown): value is Record<string, never>;
|
|
3
|
+
export declare function isNonEmptyString(value: unknown): value is Exclude<string, ''>;
|
|
4
|
+
export declare function isNotNullish<T>(value: T): value is NonNullable<T>;
|
|
5
|
+
export declare function isString(value: unknown): value is string;
|
|
6
|
+
/** https://developer.mozilla.org/en-US/docs/Glossary/Falsy */
|
|
7
|
+
export declare function isTruthy<T>(value: T): value is Exclude<T, null | undefined | false | 0 | 0n | '' | typeof document.all>;
|