Skip to content

Commit 4ba26fc

Browse files
1 parent 114a0e8 commit 4ba26fc

18 files changed

+172
-17
lines changed

Target/Function/Access.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
import type Interface from "../Interface/Access.js";
2+
/**
3+
* @module Access
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Access.js";
48
export declare const Uint8ArrayFromObject: import("../Interface/Uint8ArrayFromObject.js").default;

Target/Function/Decrypt.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import type Interface from "../Interface/Decrypt.js";
2+
/**
3+
* @module Decrypt
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Decrypt.js";

Target/Function/Encrypt.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import type Interface from "../Interface/Encrypt.js";
2+
/**
3+
* @module Encrypt
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Encrypt.js";

Target/Function/Get.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import type Interface from "../Interface/Get.js";
2+
/**
3+
* @module Get
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Get.js";

Target/Function/Put.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import type Interface from "../Interface/Put.js";
2+
/**
3+
* @module Put
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Put.js";

Target/Function/Redirect.d.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
import type Interface from "../Interface/Redirect.js";
2+
/**
3+
* @module Redirect
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Redirect.js";
4-
export declare const Response: typeof import("@cloudflare/workers-types/experimental/index.js").Response;
8+
export declare const Response: {
9+
new (body?: import("@cloudflare/workers-types/experimental/index.js").BodyInit | null, init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit): import("@cloudflare/workers-types/experimental/index.js").Response;
10+
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
11+
redirect(url: string, status?: number): import("@cloudflare/workers-types/experimental/index.js").Response;
12+
json(any: any, maybeInit?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit | import("@cloudflare/workers-types/experimental/index.js").Response): import("@cloudflare/workers-types/experimental/index.js").Response;
13+
};

Target/Function/Response.d.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
import type Interface from "../Interface/Response.js";
2+
/**
3+
* @module Response
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Response.js";
4-
export declare const Response: typeof import("@cloudflare/workers-types/experimental/index.js").Response;
8+
export declare const Response: {
9+
new (body?: import("@cloudflare/workers-types/experimental/index.js").BodyInit | null, init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit): import("@cloudflare/workers-types/experimental/index.js").Response;
10+
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
11+
redirect(url: string, status?: number): import("@cloudflare/workers-types/experimental/index.js").Response;
12+
json(any: any, maybeInit?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit | import("@cloudflare/workers-types/experimental/index.js").Response): import("@cloudflare/workers-types/experimental/index.js").Response;
13+
};

Target/Function/Uint8ArrayFromObject.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import type Interface from "../Interface/Uint8ArrayFromObject.js";
2+
/**
3+
* @module Uint8ArrayFromObject
4+
*
5+
*/
16
declare const _default: Interface;
27
export default _default;
3-
import type Interface from "../Interface/Uint8ArrayFromObject.js";

Target/Interface/Access.d.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
1+
import type { JsonWebKey, KVNamespace } from "@cloudflare/workers-types/experimental/index.js";
2+
/**
3+
* @module Access
4+
*
5+
*/
16
export default interface Interface {
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+
*/
228
(Key: JsonWebKey["k"], Identifier: ReturnType<Crypto["randomUUID"]>, KV: KVNamespace, View: string): unknown;
329
}
4-
import type { JsonWebKey, KVNamespace } from "@cloudflare/workers-types/experimental/index.js";

Target/Interface/Data.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import type _Object from "./Object.js";
2+
/**
3+
* @module Uint8ArrayObject
4+
*
5+
*/
16
export default interface Interface {
27
Vector: _Object;
38
Data: _Object;
49
}
5-
import type _Object from "./Object.js";

0 commit comments

Comments
 (0)