complete-common 2.29.0 → 2.31.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/functions/array.d.ts.map +1 -1
- package/dist/functions/assert.d.cts +4 -2
- package/dist/functions/assert.d.mts +4 -2
- package/dist/functions/assert.d.ts +4 -2
- package/dist/functions/assert.d.ts.map +1 -1
- package/dist/functions/enums.d.cts +2 -2
- package/dist/functions/enums.d.mts +2 -2
- package/dist/functions/enums.d.ts +2 -2
- package/dist/functions/set.d.cts +1 -1
- package/dist/functions/set.d.mts +1 -1
- package/dist/functions/set.d.ts +1 -1
- package/dist/functions/set.d.ts.map +1 -1
- package/dist/functions/sort.d.ts.map +1 -1
- package/dist/functions/string.d.ts.map +1 -1
- package/dist/functions/time.d.cts +1 -1
- package/dist/functions/time.d.mts +1 -1
- package/dist/functions/time.d.ts +1 -1
- package/dist/functions/time.d.ts.map +1 -1
- package/dist/functions/tuple.d.cts +2 -2
- package/dist/functions/tuple.d.mts +2 -2
- package/dist/functions/tuple.d.ts +2 -2
- package/dist/functions/types.d.cts +1 -1
- package/dist/functions/types.d.mts +1 -1
- package/dist/functions/types.d.ts +1 -1
- package/dist/functions/utils.d.cts +2 -4
- package/dist/functions/utils.d.mts +2 -4
- package/dist/functions/utils.d.ts +2 -4
- package/dist/functions/utils.d.ts.map +1 -1
- package/dist/index.cjs +44 -44
- package/dist/index.mjs +44 -45
- package/package.json +4 -4
- package/src/functions/array.ts +2 -8
- package/src/functions/assert.ts +16 -4
- package/src/functions/enums.ts +2 -2
- package/src/functions/object.ts +1 -1
- package/src/functions/set.ts +2 -7
- package/src/functions/sort.ts +1 -3
- package/src/functions/string.ts +28 -23
- package/src/functions/time.ts +5 -2
- package/src/functions/tuple.ts +2 -2
- package/src/functions/types.ts +1 -1
- package/src/functions/utils.ts +13 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/functions/array.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C,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAO3D"}
|
|
@@ -36,7 +36,7 @@ export declare function assertArrayNumber<T>(value: T, ...[msg]: [T] extends [re
|
|
|
36
36
|
] : [string]): asserts value is T & number[];
|
|
37
37
|
/**
|
|
38
38
|
* Helper function to throw an error if the provided value is not an array with every element being
|
|
39
|
-
* an object (i.e
|
|
39
|
+
* an object (i.e., a TypeScript record).
|
|
40
40
|
*/
|
|
41
41
|
export declare function assertArrayObject<T>(value: T, ...[msg]: [T] extends [ReadonlyArray<Record<string, unknown>>] ? [
|
|
42
42
|
"The assertion is useless because the provided value is already an object array."
|
|
@@ -92,7 +92,7 @@ export declare function assertNumber<T>(value: T, ...[msg]: [T] extends [number]
|
|
|
92
92
|
"The assertion is useless because the provided value is already a number."
|
|
93
93
|
] : [string]): asserts value is T & number;
|
|
94
94
|
/**
|
|
95
|
-
* Helper function to throw an error if the provided value is not an object (i.e
|
|
95
|
+
* Helper function to throw an error if the provided value is not an object (i.e., a TypeScript
|
|
96
96
|
* record).
|
|
97
97
|
*
|
|
98
98
|
* This is useful to have TypeScript narrow a `Record<string, unknown> | undefined` value to
|
|
@@ -103,6 +103,8 @@ export declare function assertNumber<T>(value: T, ...[msg]: [T] extends [number]
|
|
|
103
103
|
export declare function assertObject<T>(value: T, ...[msg]: [T] extends [Record<string, unknown>] ? [
|
|
104
104
|
"The assertion is useless because the provided value is already an object."
|
|
105
105
|
] : [string]): asserts value is T & Record<string, unknown>;
|
|
106
|
+
/** Helper function to throw an error if the provided value is not a positive integer. */
|
|
107
|
+
export declare function assertPositiveInteger(value: unknown, msg: string): asserts value is number;
|
|
106
108
|
/** Helper function to throw an error if the provided value is not a string. */
|
|
107
109
|
export declare function assertString<T>(value: T, ...[msg]: [T] extends [string] ? [
|
|
108
110
|
"The assertion is useless because the provided value is already a string."
|
|
@@ -36,7 +36,7 @@ export declare function assertArrayNumber<T>(value: T, ...[msg]: [T] extends [re
|
|
|
36
36
|
] : [string]): asserts value is T & number[];
|
|
37
37
|
/**
|
|
38
38
|
* Helper function to throw an error if the provided value is not an array with every element being
|
|
39
|
-
* an object (i.e
|
|
39
|
+
* an object (i.e., a TypeScript record).
|
|
40
40
|
*/
|
|
41
41
|
export declare function assertArrayObject<T>(value: T, ...[msg]: [T] extends [ReadonlyArray<Record<string, unknown>>] ? [
|
|
42
42
|
"The assertion is useless because the provided value is already an object array."
|
|
@@ -92,7 +92,7 @@ export declare function assertNumber<T>(value: T, ...[msg]: [T] extends [number]
|
|
|
92
92
|
"The assertion is useless because the provided value is already a number."
|
|
93
93
|
] : [string]): asserts value is T & number;
|
|
94
94
|
/**
|
|
95
|
-
* Helper function to throw an error if the provided value is not an object (i.e
|
|
95
|
+
* Helper function to throw an error if the provided value is not an object (i.e., a TypeScript
|
|
96
96
|
* record).
|
|
97
97
|
*
|
|
98
98
|
* This is useful to have TypeScript narrow a `Record<string, unknown> | undefined` value to
|
|
@@ -103,6 +103,8 @@ export declare function assertNumber<T>(value: T, ...[msg]: [T] extends [number]
|
|
|
103
103
|
export declare function assertObject<T>(value: T, ...[msg]: [T] extends [Record<string, unknown>] ? [
|
|
104
104
|
"The assertion is useless because the provided value is already an object."
|
|
105
105
|
] : [string]): asserts value is T & Record<string, unknown>;
|
|
106
|
+
/** Helper function to throw an error if the provided value is not a positive integer. */
|
|
107
|
+
export declare function assertPositiveInteger(value: unknown, msg: string): asserts value is number;
|
|
106
108
|
/** Helper function to throw an error if the provided value is not a string. */
|
|
107
109
|
export declare function assertString<T>(value: T, ...[msg]: [T] extends [string] ? [
|
|
108
110
|
"The assertion is useless because the provided value is already a string."
|
|
@@ -36,7 +36,7 @@ export declare function assertArrayNumber<T>(value: T, ...[msg]: [T] extends [re
|
|
|
36
36
|
] : [string]): asserts value is T & number[];
|
|
37
37
|
/**
|
|
38
38
|
* Helper function to throw an error if the provided value is not an array with every element being
|
|
39
|
-
* an object (i.e
|
|
39
|
+
* an object (i.e., a TypeScript record).
|
|
40
40
|
*/
|
|
41
41
|
export declare function assertArrayObject<T>(value: T, ...[msg]: [T] extends [ReadonlyArray<Record<string, unknown>>] ? [
|
|
42
42
|
"The assertion is useless because the provided value is already an object array."
|
|
@@ -92,7 +92,7 @@ export declare function assertNumber<T>(value: T, ...[msg]: [T] extends [number]
|
|
|
92
92
|
"The assertion is useless because the provided value is already a number."
|
|
93
93
|
] : [string]): asserts value is T & number;
|
|
94
94
|
/**
|
|
95
|
-
* Helper function to throw an error if the provided value is not an object (i.e
|
|
95
|
+
* Helper function to throw an error if the provided value is not an object (i.e., a TypeScript
|
|
96
96
|
* record).
|
|
97
97
|
*
|
|
98
98
|
* This is useful to have TypeScript narrow a `Record<string, unknown> | undefined` value to
|
|
@@ -103,6 +103,8 @@ export declare function assertNumber<T>(value: T, ...[msg]: [T] extends [number]
|
|
|
103
103
|
export declare function assertObject<T>(value: T, ...[msg]: [T] extends [Record<string, unknown>] ? [
|
|
104
104
|
"The assertion is useless because the provided value is already an object."
|
|
105
105
|
] : [string]): asserts value is T & Record<string, unknown>;
|
|
106
|
+
/** Helper function to throw an error if the provided value is not a positive integer. */
|
|
107
|
+
export declare function assertPositiveInteger(value: unknown, msg: string): asserts value is number;
|
|
106
108
|
/** Helper function to throw an error if the provided value is not a string. */
|
|
107
109
|
export declare function assertString<T>(value: T, ...[msg]: [T] extends [string] ? [
|
|
108
110
|
"The assertion is useless because the provided value is already a string."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../src/functions/assert.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI/C,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,CAAC,EAC3B,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,GAAG,CAAC,EAA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C,CAAC,EAC5B,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,GAC1B;IACE,0EAA0E;CAC3E,GACD,CAAC,MAAM,CAAC,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,GAAG,MAAM,CAI7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC3C;IACE,2EAA2E;CAC5E,GACD,CAAC,MAAM,CAAC,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAI9C;AAED,yFAAyF;AACzF,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,KAAK,IAAI,MAAM,CAMzB;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,CAAC,EAC5B,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,GAC1B;IACE,0EAA0E;CAC3E,GACD,CAAC,MAAM,CAAC,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,GAAG,MAAM,CAI7B;AAED,kGAAkG;AAClG,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,KAAK,IAAI,MAAM,CAMzB"}
|
|
@@ -33,7 +33,7 @@ export declare function getEnumKeys(transpiledEnum: TranspiledEnum): readonly st
|
|
|
33
33
|
export declare function getEnumValues<T extends TranspiledEnum>(transpiledEnum: T): ReadonlyArray<T[keyof T]>;
|
|
34
34
|
/**
|
|
35
35
|
* Helper function to validate that an interface contains all of the keys of an enum. You must
|
|
36
|
-
* specify both generic parameters in order for this to work properly (i.e
|
|
36
|
+
* specify both generic parameters in order for this to work properly (i.e., the interface and then
|
|
37
37
|
* the enum).
|
|
38
38
|
*
|
|
39
39
|
* For example:
|
|
@@ -54,7 +54,7 @@ export declare function getEnumValues<T extends TranspiledEnum>(transpiledEnum:
|
|
|
54
54
|
* interfaceSatisfiesEnum<MyEnumToType, MyEnum>();
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
|
-
* This function is only meant to be used with interfaces (i.e
|
|
57
|
+
* This function is only meant to be used with interfaces (i.e., types that will not exist at
|
|
58
58
|
* run-time). If you are generating an object that will contain all of the keys of an enum, use the
|
|
59
59
|
* `satisfies` operator with the `Record` type instead.
|
|
60
60
|
*/
|
|
@@ -33,7 +33,7 @@ export declare function getEnumKeys(transpiledEnum: TranspiledEnum): readonly st
|
|
|
33
33
|
export declare function getEnumValues<T extends TranspiledEnum>(transpiledEnum: T): ReadonlyArray<T[keyof T]>;
|
|
34
34
|
/**
|
|
35
35
|
* Helper function to validate that an interface contains all of the keys of an enum. You must
|
|
36
|
-
* specify both generic parameters in order for this to work properly (i.e
|
|
36
|
+
* specify both generic parameters in order for this to work properly (i.e., the interface and then
|
|
37
37
|
* the enum).
|
|
38
38
|
*
|
|
39
39
|
* For example:
|
|
@@ -54,7 +54,7 @@ export declare function getEnumValues<T extends TranspiledEnum>(transpiledEnum:
|
|
|
54
54
|
* interfaceSatisfiesEnum<MyEnumToType, MyEnum>();
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
|
-
* This function is only meant to be used with interfaces (i.e
|
|
57
|
+
* This function is only meant to be used with interfaces (i.e., types that will not exist at
|
|
58
58
|
* run-time). If you are generating an object that will contain all of the keys of an enum, use the
|
|
59
59
|
* `satisfies` operator with the `Record` type instead.
|
|
60
60
|
*/
|
|
@@ -33,7 +33,7 @@ export declare function getEnumKeys(transpiledEnum: TranspiledEnum): readonly st
|
|
|
33
33
|
export declare function getEnumValues<T extends TranspiledEnum>(transpiledEnum: T): ReadonlyArray<T[keyof T]>;
|
|
34
34
|
/**
|
|
35
35
|
* Helper function to validate that an interface contains all of the keys of an enum. You must
|
|
36
|
-
* specify both generic parameters in order for this to work properly (i.e
|
|
36
|
+
* specify both generic parameters in order for this to work properly (i.e., the interface and then
|
|
37
37
|
* the enum).
|
|
38
38
|
*
|
|
39
39
|
* For example:
|
|
@@ -54,7 +54,7 @@ export declare function getEnumValues<T extends TranspiledEnum>(transpiledEnum:
|
|
|
54
54
|
* interfaceSatisfiesEnum<MyEnumToType, MyEnum>();
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
|
-
* This function is only meant to be used with interfaces (i.e
|
|
57
|
+
* This function is only meant to be used with interfaces (i.e., types that will not exist at
|
|
58
58
|
* run-time). If you are generating an object that will contain all of the keys of an enum, use the
|
|
59
59
|
* `satisfies` operator with the `Record` type instead.
|
|
60
60
|
*/
|
package/dist/functions/set.d.cts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: ReadonlyA
|
|
|
17
17
|
* This function is variadic, meaning that you can specify N sets.
|
|
18
18
|
*/
|
|
19
19
|
export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): ReadonlySet<T>;
|
|
20
|
-
/** Helper function to copy a set. (
|
|
20
|
+
/** Helper function to copy a set. (Under the hood, this simply calls the `Set` constructor.) */
|
|
21
21
|
export declare function copySet<T>(oldSet: ReadonlySet<T>): ReadonlySet<T>;
|
|
22
22
|
/** Helper function to convert the keys of an object to a set. */
|
|
23
23
|
export declare function objectKeysToSet<K extends PropertyKey, V>(object: Record<K, V>): ReadonlySet<K>;
|
package/dist/functions/set.d.mts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: ReadonlyA
|
|
|
17
17
|
* This function is variadic, meaning that you can specify N sets.
|
|
18
18
|
*/
|
|
19
19
|
export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): ReadonlySet<T>;
|
|
20
|
-
/** Helper function to copy a set. (
|
|
20
|
+
/** Helper function to copy a set. (Under the hood, this simply calls the `Set` constructor.) */
|
|
21
21
|
export declare function copySet<T>(oldSet: ReadonlySet<T>): ReadonlySet<T>;
|
|
22
22
|
/** Helper function to convert the keys of an object to a set. */
|
|
23
23
|
export declare function objectKeysToSet<K extends PropertyKey, V>(object: Record<K, V>): ReadonlySet<K>;
|
package/dist/functions/set.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: ReadonlyA
|
|
|
17
17
|
* This function is variadic, meaning that you can specify N sets.
|
|
18
18
|
*/
|
|
19
19
|
export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): ReadonlySet<T>;
|
|
20
|
-
/** Helper function to copy a set. (
|
|
20
|
+
/** Helper function to copy a set. (Under the hood, this simply calls the `Set` constructor.) */
|
|
21
21
|
export declare function copySet<T>(oldSet: ReadonlySet<T>): ReadonlySet<T>;
|
|
22
22
|
/** Helper function to convert the keys of an object to a set. */
|
|
23
23
|
export declare function objectKeysToSet<K extends PropertyKey, V>(object: Record<K, V>): ReadonlySet<K>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../src/functions/set.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAE5B,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,GAAG,SAAS,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC1C,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,GAAG,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACrC,WAAW,CAAC,CAAC,CAAC,CAShB;AAED,
|
|
1
|
+
{"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../src/functions/set.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAE5B,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,GAAG,SAAS,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC1C,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,GAAG,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACrC,WAAW,CAAC,CAAC,CAAC,CAShB;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAEjE;AAED,iEAAiE;AACjE,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,EACtD,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,WAAW,CAAC,CAAC,CAAC,CAQhB;AAED,mEAAmE;AACnE,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,EACxD,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,WAAW,CAAC,CAAC,CAAC,CAQhB;AAED;;;;;GAKG;AAEH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,CAItE;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,CAAC,EACtB,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,EACnB,GAAG,QAAQ,EAAE,SAAS,CAAC,EAAE,GACxB,OAAO,CAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../src/functions/sort.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,SAAS,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../src/functions/sort.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,SAAS,MAAM,EAAE,CAOnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/functions/string.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AA8BxE,kEAAkE;AAClE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAU5D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAO3D;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAqBlE;AAED,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAOpD;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,+EAA+E;AAC/E,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE5C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/functions/string.ts"],"names":[],"mappings":"AA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E,MAAM,GAAG,MAAM,CAiBtD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,MAAM,GACpB,eAAe,GAAG,SAAS,CA4B7B;AAGD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,MAAM,CAuBR;AAED,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIzE;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,GACrB,OAAO,CA6BT;AAED,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAK3D;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,UAAQ,GACd,MAAM,CAWR;AAED,gGAAgG;AAChG,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAOjE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAMxE"}
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
* const elapsedSeconds = getElapsedSeconds(startTime);
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare function getElapsedSeconds(startTime: number): number;
|
|
19
|
+
export declare function getElapsedSeconds(startTime: number, roundToInteger?: boolean): number;
|
|
20
20
|
//# sourceMappingURL=time.d.ts.map
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
* const elapsedSeconds = getElapsedSeconds(startTime);
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare function getElapsedSeconds(startTime: number): number;
|
|
19
|
+
export declare function getElapsedSeconds(startTime: number, roundToInteger?: boolean): number;
|
|
20
20
|
//# sourceMappingURL=time.d.ts.map
|
package/dist/functions/time.d.ts
CHANGED
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
* const elapsedSeconds = getElapsedSeconds(startTime);
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare function getElapsedSeconds(startTime: number): number;
|
|
19
|
+
export declare function getElapsedSeconds(startTime: number, roundToInteger?: boolean): number;
|
|
20
20
|
//# sourceMappingURL=time.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/functions/time.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/functions/time.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,EACjB,cAAc,UAAO,GACpB,MAAM,CAMR"}
|
|
@@ -10,14 +10,14 @@ type TupleKey<T extends readonly unknown[]> = {
|
|
|
10
10
|
type TupleValue<T extends readonly unknown[]> = T[0];
|
|
11
11
|
type TupleEntry<T extends readonly unknown[]> = [TupleKey<T>, TupleValue<T>];
|
|
12
12
|
/**
|
|
13
|
-
* Helper function to get the entries (i.e
|
|
13
|
+
* Helper function to get the entries (i.e., indexes and values) of a tuple in a type-safe way.
|
|
14
14
|
*
|
|
15
15
|
* This is useful because the vanilla `Array.entries` method will always have the keys be of type
|
|
16
16
|
* `number`.
|
|
17
17
|
*/
|
|
18
18
|
export declare function tupleEntries<T extends readonly unknown[]>(tuple: T): Generator<TupleEntry<T>>;
|
|
19
19
|
/**
|
|
20
|
-
* Helper function to get the keys (i.e
|
|
20
|
+
* Helper function to get the keys (i.e., indexes) of a tuple in a type-safe way.
|
|
21
21
|
*
|
|
22
22
|
* This is useful because the vanilla `Array.keys` method will always have the keys be of type
|
|
23
23
|
* `number`.
|
|
@@ -10,14 +10,14 @@ type TupleKey<T extends readonly unknown[]> = {
|
|
|
10
10
|
type TupleValue<T extends readonly unknown[]> = T[0];
|
|
11
11
|
type TupleEntry<T extends readonly unknown[]> = [TupleKey<T>, TupleValue<T>];
|
|
12
12
|
/**
|
|
13
|
-
* Helper function to get the entries (i.e
|
|
13
|
+
* Helper function to get the entries (i.e., indexes and values) of a tuple in a type-safe way.
|
|
14
14
|
*
|
|
15
15
|
* This is useful because the vanilla `Array.entries` method will always have the keys be of type
|
|
16
16
|
* `number`.
|
|
17
17
|
*/
|
|
18
18
|
export declare function tupleEntries<T extends readonly unknown[]>(tuple: T): Generator<TupleEntry<T>>;
|
|
19
19
|
/**
|
|
20
|
-
* Helper function to get the keys (i.e
|
|
20
|
+
* Helper function to get the keys (i.e., indexes) of a tuple in a type-safe way.
|
|
21
21
|
*
|
|
22
22
|
* This is useful because the vanilla `Array.keys` method will always have the keys be of type
|
|
23
23
|
* `number`.
|
|
@@ -10,14 +10,14 @@ type TupleKey<T extends readonly unknown[]> = {
|
|
|
10
10
|
type TupleValue<T extends readonly unknown[]> = T[0];
|
|
11
11
|
type TupleEntry<T extends readonly unknown[]> = [TupleKey<T>, TupleValue<T>];
|
|
12
12
|
/**
|
|
13
|
-
* Helper function to get the entries (i.e
|
|
13
|
+
* Helper function to get the entries (i.e., indexes and values) of a tuple in a type-safe way.
|
|
14
14
|
*
|
|
15
15
|
* This is useful because the vanilla `Array.entries` method will always have the keys be of type
|
|
16
16
|
* `number`.
|
|
17
17
|
*/
|
|
18
18
|
export declare function tupleEntries<T extends readonly unknown[]>(tuple: T): Generator<TupleEntry<T>>;
|
|
19
19
|
/**
|
|
20
|
-
* Helper function to get the keys (i.e
|
|
20
|
+
* Helper function to get the keys (i.e., indexes) of a tuple in a type-safe way.
|
|
21
21
|
*
|
|
22
22
|
* This is useful because the vanilla `Array.keys` method will always have the keys be of type
|
|
23
23
|
* `number`.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Helper function to narrow an unknown value to an object (i.e
|
|
7
|
+
* Helper function to narrow an unknown value to an object (i.e., a TypeScript record).
|
|
8
8
|
*
|
|
9
9
|
* Under the hood, this checks for `typeof variable === "object"`, `variable !== null`, and
|
|
10
10
|
* `!Array.isArray(variable)`.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Helper function to narrow an unknown value to an object (i.e
|
|
7
|
+
* Helper function to narrow an unknown value to an object (i.e., a TypeScript record).
|
|
8
8
|
*
|
|
9
9
|
* Under the hood, this checks for `typeof variable === "object"`, `variable !== null`, and
|
|
10
10
|
* `!Array.isArray(variable)`.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Helper function to narrow an unknown value to an object (i.e
|
|
7
|
+
* Helper function to narrow an unknown value to an object (i.e., a TypeScript record).
|
|
8
8
|
*
|
|
9
9
|
* Under the hood, this checks for `typeof variable === "object"`, `variable !== null`, and
|
|
10
10
|
* `!Array.isArray(variable)`.
|
|
@@ -73,10 +73,8 @@ export declare function noop(): void;
|
|
|
73
73
|
* - `undefined` is returned instead of `Number.NaN`, which is helpful in conjunction with
|
|
74
74
|
* TypeScript type narrowing patterns.
|
|
75
75
|
* - Strings that are a mixture of numbers and letters will result in undefined instead of the part
|
|
76
|
-
* of the string that is the number. (e.g
|
|
76
|
+
* of the string that is the number. (e.g., "1a" --> undefined instead of "1a" --> 1)
|
|
77
77
|
* - Non-strings will result in undefined instead of being coerced to a number.
|
|
78
|
-
*
|
|
79
|
-
* @param string A string to convert to an integer.
|
|
80
78
|
*/
|
|
81
79
|
export declare function parseFloatSafe(string: string): number | undefined;
|
|
82
80
|
/**
|
|
@@ -85,7 +83,7 @@ export declare function parseFloatSafe(string: string): number | undefined;
|
|
|
85
83
|
* - `undefined` is returned instead of `Number.NaN`, which is helpful in conjunction with
|
|
86
84
|
* TypeScript type narrowing patterns.
|
|
87
85
|
* - Strings that are a mixture of numbers and letters will result in undefined instead of the part
|
|
88
|
-
* of the string that is the number. (e.g
|
|
86
|
+
* of the string that is the number. (e.g., "1a" --> undefined instead of "1a" --> 1)
|
|
89
87
|
* - Non-strings will result in undefined instead of being coerced to a number.
|
|
90
88
|
*
|
|
91
89
|
* If you have to use a radix other than 10, use the vanilla `Number.parseInt` function instead,
|
|
@@ -73,10 +73,8 @@ export declare function noop(): void;
|
|
|
73
73
|
* - `undefined` is returned instead of `Number.NaN`, which is helpful in conjunction with
|
|
74
74
|
* TypeScript type narrowing patterns.
|
|
75
75
|
* - Strings that are a mixture of numbers and letters will result in undefined instead of the part
|
|
76
|
-
* of the string that is the number. (e.g
|
|
76
|
+
* of the string that is the number. (e.g., "1a" --> undefined instead of "1a" --> 1)
|
|
77
77
|
* - Non-strings will result in undefined instead of being coerced to a number.
|
|
78
|
-
*
|
|
79
|
-
* @param string A string to convert to an integer.
|
|
80
78
|
*/
|
|
81
79
|
export declare function parseFloatSafe(string: string): number | undefined;
|
|
82
80
|
/**
|
|
@@ -85,7 +83,7 @@ export declare function parseFloatSafe(string: string): number | undefined;
|
|
|
85
83
|
* - `undefined` is returned instead of `Number.NaN`, which is helpful in conjunction with
|
|
86
84
|
* TypeScript type narrowing patterns.
|
|
87
85
|
* - Strings that are a mixture of numbers and letters will result in undefined instead of the part
|
|
88
|
-
* of the string that is the number. (e.g
|
|
86
|
+
* of the string that is the number. (e.g., "1a" --> undefined instead of "1a" --> 1)
|
|
89
87
|
* - Non-strings will result in undefined instead of being coerced to a number.
|
|
90
88
|
*
|
|
91
89
|
* If you have to use a radix other than 10, use the vanilla `Number.parseInt` function instead,
|
|
@@ -73,10 +73,8 @@ export declare function noop(): void;
|
|
|
73
73
|
* - `undefined` is returned instead of `Number.NaN`, which is helpful in conjunction with
|
|
74
74
|
* TypeScript type narrowing patterns.
|
|
75
75
|
* - Strings that are a mixture of numbers and letters will result in undefined instead of the part
|
|
76
|
-
* of the string that is the number. (e.g
|
|
76
|
+
* of the string that is the number. (e.g., "1a" --> undefined instead of "1a" --> 1)
|
|
77
77
|
* - Non-strings will result in undefined instead of being coerced to a number.
|
|
78
|
-
*
|
|
79
|
-
* @param string A string to convert to an integer.
|
|
80
78
|
*/
|
|
81
79
|
export declare function parseFloatSafe(string: string): number | undefined;
|
|
82
80
|
/**
|
|
@@ -85,7 +83,7 @@ export declare function parseFloatSafe(string: string): number | undefined;
|
|
|
85
83
|
* - `undefined` is returned instead of `Number.NaN`, which is helpful in conjunction with
|
|
86
84
|
* TypeScript type narrowing patterns.
|
|
87
85
|
* - Strings that are a mixture of numbers and letters will result in undefined instead of the part
|
|
88
|
-
* of the string that is the number. (e.g
|
|
86
|
+
* of the string that is the number. (e.g., "1a" --> undefined instead of "1a" --> 1)
|
|
89
87
|
* - Non-strings will result in undefined instead of being coerced to a number.
|
|
90
88
|
*
|
|
91
89
|
* If you have to use a radix other than 10, use the vanilla `Number.parseInt` function instead,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/functions/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAiB,MAAM,CACrB,KAAK,EAAE,MAAM,EACb,GAAG,CAAC,EAAE,MAAM,EACZ,SAAS,SAAI,GACZ,SAAS,CAAC,MAAM,CAAC,CASnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA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