@js-utils-kit/types 1.0.0 → 1.1.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.d.cts +16 -1
- package/dist/index.d.mts +16 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -66,6 +66,21 @@ declare const Environment: {
|
|
|
66
66
|
};
|
|
67
67
|
type Environment = (typeof Environment)[keyof typeof Environment];
|
|
68
68
|
//#endregion
|
|
69
|
+
//#region src/Falsy.d.ts
|
|
70
|
+
/**
|
|
71
|
+
* Represents all JavaScript falsy values.
|
|
72
|
+
*
|
|
73
|
+
* These are values that coerce to `false` in boolean contexts.
|
|
74
|
+
*
|
|
75
|
+
* Includes:
|
|
76
|
+
* - `false`
|
|
77
|
+
* - `0`
|
|
78
|
+
* - `""` (empty string)
|
|
79
|
+
* - `null`
|
|
80
|
+
* - `undefined`
|
|
81
|
+
*/
|
|
82
|
+
type Falsy = false | 0 | '' | null | undefined;
|
|
83
|
+
//#endregion
|
|
69
84
|
//#region src/Hour.d.ts
|
|
70
85
|
/**
|
|
71
86
|
* Represents an hour value in a 24-hour format.
|
|
@@ -119,4 +134,4 @@ interface Trim {
|
|
|
119
134
|
normalizeWhitespace(str: string): string;
|
|
120
135
|
}
|
|
121
136
|
//#endregion
|
|
122
|
-
export { ArchiveFormat, ArchiverOptions, CreateArchiveOptions, Environment, Hour, MinuteOrSecond, Trim };
|
|
137
|
+
export { ArchiveFormat, ArchiverOptions, CreateArchiveOptions, Environment, Falsy, Hour, MinuteOrSecond, Trim };
|
package/dist/index.d.mts
CHANGED
|
@@ -66,6 +66,21 @@ declare const Environment: {
|
|
|
66
66
|
};
|
|
67
67
|
type Environment = (typeof Environment)[keyof typeof Environment];
|
|
68
68
|
//#endregion
|
|
69
|
+
//#region src/Falsy.d.ts
|
|
70
|
+
/**
|
|
71
|
+
* Represents all JavaScript falsy values.
|
|
72
|
+
*
|
|
73
|
+
* These are values that coerce to `false` in boolean contexts.
|
|
74
|
+
*
|
|
75
|
+
* Includes:
|
|
76
|
+
* - `false`
|
|
77
|
+
* - `0`
|
|
78
|
+
* - `""` (empty string)
|
|
79
|
+
* - `null`
|
|
80
|
+
* - `undefined`
|
|
81
|
+
*/
|
|
82
|
+
type Falsy = false | 0 | '' | null | undefined;
|
|
83
|
+
//#endregion
|
|
69
84
|
//#region src/Hour.d.ts
|
|
70
85
|
/**
|
|
71
86
|
* Represents an hour value in a 24-hour format.
|
|
@@ -119,4 +134,4 @@ interface Trim {
|
|
|
119
134
|
normalizeWhitespace(str: string): string;
|
|
120
135
|
}
|
|
121
136
|
//#endregion
|
|
122
|
-
export { ArchiveFormat, ArchiverOptions, CreateArchiveOptions, Environment, Hour, MinuteOrSecond, Trim };
|
|
137
|
+
export { ArchiveFormat, ArchiverOptions, CreateArchiveOptions, Environment, Falsy, Hour, MinuteOrSecond, Trim };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-utils-kit/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Type Declarations",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"types": "./dist/index.d.cts",
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"require": "./dist/index.cjs",
|
|
34
|
+
"import": "./dist/index.mjs"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {},
|