@elyukai/utils 0.2.0 → 0.2.1
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/CHANGELOG.md +7 -0
- package/dist/dictionary.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.2.1](https://github.com/elyukai/ts-utils/compare/v0.2.0...v0.2.1) (2026-02-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* specific key type ([a8a7975](https://github.com/elyukai/ts-utils/commit/a8a79750d4323e44b17b9ba01152150de12b7792))
|
|
11
|
+
|
|
5
12
|
## [0.2.0](https://github.com/elyukai/ts-utils/compare/v0.1.7...v0.2.0) (2026-02-05)
|
|
6
13
|
|
|
7
14
|
|
package/dist/dictionary.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export declare class Dictionary<T extends AnyNonNullish | null, K extends string
|
|
|
89
89
|
/**
|
|
90
90
|
* Returns the first key that matches the given predicate, or `undefined` if no such key exists.
|
|
91
91
|
*/
|
|
92
|
-
findKey(predicate: (value: T, key: K) => boolean):
|
|
92
|
+
findKey(predicate: (value: T, key: K) => boolean): K | undefined;
|
|
93
93
|
/**
|
|
94
94
|
* Returns the first key-value pair that matches the given predicate, or `undefined` if no such key-value pair exists.
|
|
95
95
|
*/
|
|
@@ -109,7 +109,7 @@ export declare class Dictionary<T extends AnyNonNullish | null, K extends string
|
|
|
109
109
|
/**
|
|
110
110
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
111
111
|
*/
|
|
112
|
-
reduce<U>(reducer: (acc: U, value: T, key:
|
|
112
|
+
reduce<U>(reducer: (acc: U, value: T, key: K) => U, initialValue: U): U;
|
|
113
113
|
/**
|
|
114
114
|
* Converts the dictionary to a plain object.
|
|
115
115
|
*
|