@chainfuse/types 4.0.9 → 4.1.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/dist/index.d.ts +8 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,14 @@ type MethodKeys<T> = {
|
|
|
6
6
|
[P in keyof T]: T[P] extends (...args: any[]) => any ? P : never;
|
|
7
7
|
}[keyof T];
|
|
8
8
|
export type JsonParsed<T> = Omit<T, MethodKeys<T>>;
|
|
9
|
+
/**
|
|
10
|
+
* Interface for CacheStorage-like objects that can be used as drop-in replacements.
|
|
11
|
+
* This interface ensures compatibility with the Web API CacheStorage while allowing for custom implementations that provide the same core functionality.
|
|
12
|
+
*/
|
|
13
|
+
export interface CacheStorageLike {
|
|
14
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
|
|
15
|
+
open(cacheName: string): Promise<Cache>;
|
|
16
|
+
}
|
|
9
17
|
/**
|
|
10
18
|
* It is used to carry over the types when using the `Object.values()` method.
|
|
11
19
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -98,12 +98,12 @@
|
|
|
98
98
|
},
|
|
99
99
|
"prettier": "@demosjarco/prettier-config",
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"validator": "^13.15.
|
|
101
|
+
"validator": "^13.15.23",
|
|
102
102
|
"zod": "^4.1.12"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@cloudflare/workers-types": "^4.
|
|
106
|
-
"@types/validator": "^13.15.
|
|
105
|
+
"@cloudflare/workers-types": "^4.20251111.0",
|
|
106
|
+
"@types/validator": "^13.15.6"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "61e161d0b275f7df325f2ed2c1023fbd4fd0e5ab"
|
|
109
109
|
}
|