es-toolkit 1.27.0-dev.891 → 1.27.0-dev.892
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
|
|
8
8
|
*
|
|
9
9
|
* @param {unknown} x - The value to check if it is a Buffer.
|
|
10
|
-
* @returns {
|
|
10
|
+
* @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* const buffer = Buffer.from("test");
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* const notBuffer = "not a buffer";
|
|
17
17
|
* console.log(isBuffer(notBuffer)); // false
|
|
18
18
|
*/
|
|
19
|
-
declare function isBuffer(x: unknown):
|
|
19
|
+
declare function isBuffer(x: unknown): boolean;
|
|
20
20
|
|
|
21
21
|
export { isBuffer };
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
|
|
8
8
|
*
|
|
9
9
|
* @param {unknown} x - The value to check if it is a Buffer.
|
|
10
|
-
* @returns {
|
|
10
|
+
* @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* const buffer = Buffer.from("test");
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* const notBuffer = "not a buffer";
|
|
17
17
|
* console.log(isBuffer(notBuffer)); // false
|
|
18
18
|
*/
|
|
19
|
-
declare function isBuffer(x: unknown):
|
|
19
|
+
declare function isBuffer(x: unknown): boolean;
|
|
20
20
|
|
|
21
21
|
export { isBuffer };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.27.0-dev.
|
|
4
|
+
"version": "1.27.0-dev.892+54858f95",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|