bun-types-no-globals 1.2.22-canary.20250911T140715 → 1.2.22-canary.20250913T140611
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/lib/index.d.ts +1 -1
- package/lib/redis.d.ts +8 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
/// <reference path="./sql.d.ts" />
|
|
23
23
|
/// <reference path="./security.d.ts" />
|
|
24
24
|
/// <reference path="./bun.ns.d.ts" />
|
|
25
|
-
//
|
|
25
|
+
// Must disable this so it doesn't conflict with the DOM onmessage type, but still
|
|
26
26
|
// allows us to declare our own globals that Node's types can "see" and not conflict with
|
package/lib/redis.d.ts
CHANGED
|
@@ -270,6 +270,14 @@ declare module "bun" {
|
|
|
270
270
|
*/
|
|
271
271
|
hmset(key: RedisClient.KeyLike, fieldValues: string[]): Promise<string>;
|
|
272
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Get the value of a hash field
|
|
275
|
+
* @param key The hash key
|
|
276
|
+
* @param field The field to get
|
|
277
|
+
* @returns Promise that resolves with the field value or null if the field doesn't exist
|
|
278
|
+
*/
|
|
279
|
+
hget(key: RedisClient.KeyLike, field: RedisClient.KeyLike): Promise<string | null>;
|
|
280
|
+
|
|
273
281
|
/**
|
|
274
282
|
* Get the values of all the given hash fields
|
|
275
283
|
* @param key The hash key
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bun-types-no-globals",
|
|
3
|
-
"version": "1.2.22-canary.
|
|
3
|
+
"version": "1.2.22-canary.20250913T140611",
|
|
4
4
|
"main": "./generator/index.ts",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"description": "TypeScript type definitions for Bun without global types pollution",
|