1- import type {
2- JsonWebKey ,
3- KVNamespace ,
4- } from "@cloudflare/workers-types/experimental/index.js" ;
5-
1+ import type { JsonWebKey , KVNamespace } from "@cloudflare/workers-types/experimental/index.js" ;
62/**
73 * @module Access
84 *
95 */
106export default interface Interface {
11- /**
12- * The function `Access` is a TypeScript function that decrypts and retrieves a specific
13- * view from a stored data object using a provided key and unique identifier.
14- *
15- * @param Key - The `Key` parameter is of type `JsonWebKey["k"]`, which means it expects
16- * a value that is a string representing a JSON Web Key. This key will be used for
17- * decryption.
18- *
19- * @param Identifier - The Identifier parameter is a unique identifier generated using the
20- * `randomUUID` function from the `Crypto` object. It is used to retrieve data from the
21- * KV namespace.
22- *
23- * @param KV - KV is an instance of the KVNamespace class, which is used
24- * to interact with the Workers KV storage. It provides methods for reading, writing,
25- * and deleting data from the KV storage.
26- *
27- * @param View - The `View` parameter is a string that represents the specific
28- * view or property of the decrypted data that you want to access. It is used to
29- * retrieve a specific value from the decrypted data object.
30- *
31- */
32- (
33- Key : JsonWebKey [ "k" ] ,
34- Identifier : ReturnType < Crypto [ "randomUUID" ] > ,
35- KV : KVNamespace ,
36- View : string ,
37- ) : unknown ;
7+ /**
8+ * The function `Access` is a TypeScript function that decrypts and retrieves a specific
9+ * view from a stored data object using a provided key and unique identifier.
10+ *
11+ * @param Key - The `Key` parameter is of type `JsonWebKey["k"]`, which means it expects
12+ * a value that is a string representing a JSON Web Key. This key will be used for
13+ * decryption.
14+ *
15+ * @param Identifier - The Identifier parameter is a unique identifier generated using the
16+ * `randomUUID` function from the `Crypto` object. It is used to retrieve data from the
17+ * KV namespace.
18+ *
19+ * @param KV - KV is an instance of the KVNamespace class, which is used
20+ * to interact with the Workers KV storage. It provides methods for reading, writing,
21+ * and deleting data from the KV storage.
22+ *
23+ * @param View - The `View` parameter is a string that represents the specific
24+ * view or property of the decrypted data that you want to access. It is used to
25+ * retrieve a specific value from the decrypted data object.
26+ *
27+ */
28+ ( Key : JsonWebKey [ "k" ] , Identifier : ReturnType < Crypto [ "randomUUID" ] > , KV : KVNamespace , View : string ) : unknown ;
3829}
39- //# sourceMappingURL=Access.d.ts.map
30+ //# sourceMappingURL=Access.d.ts.map
0 commit comments