nhb-toolbox 4.27.1 → 4.27.10
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 +4 -0
- package/dist/dts/string/types.d.ts +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ All notable changes to the package will be documented here.
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [4.27.10] - 2025-11-28
|
|
10
|
+
|
|
11
|
+
- **Updated** type augmentation for `String` methods: `toLowerCase` and `toUpperCase` (type level only, implementation remains intact).
|
|
12
|
+
|
|
9
13
|
## [4.27.1] - 2025-11-28
|
|
10
14
|
|
|
11
15
|
- **Updated** default *type parameter* for `generateRandomColor` by replacing `undefined` with `'hex'`.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { $Countries } from '../object/types';
|
|
2
2
|
import type { Join, LooseLiteral, Split } from '../utils/types';
|
|
3
3
|
import type { LOWERCASE } from './constants';
|
|
4
|
-
/** Set proper type interface for `String` methods */
|
|
5
4
|
declare global {
|
|
6
5
|
interface String {
|
|
7
|
-
toLowerCase
|
|
8
|
-
|
|
6
|
+
toLowerCase(): string;
|
|
7
|
+
toLowerCase<C extends 'T'>(): C extends 'T' ? Lowercase<string> : string;
|
|
8
|
+
toUpperCase(): string;
|
|
9
|
+
toUpperCase<C extends 'T'>(): C extends 'T' ? Uppercase<string> : string;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
/** - Options for generating anagrams. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nhb-toolbox",
|
|
3
|
-
"version": "4.27.
|
|
3
|
+
"version": "4.27.10",
|
|
4
4
|
"description": "A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|