Skip to content

Commit c3f9ca9

Browse files
1 parent b5e2505 commit c3f9ca9

18 files changed

+95
-146
lines changed

Target/Function/Access.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../Interface/Access.js";
2-
32
/**
43
* @module Access
54
*

Target/Function/Decrypt.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../Interface/Decrypt.js";
2-
32
/**
43
* @module Decrypt
54
*

Target/Function/Encrypt.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../Interface/Encrypt.js";
2-
32
/**
43
* @module Encrypt
54
*

Target/Function/Get.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../Interface/Get.js";
2-
32
/**
43
* @module Get
54
*

Target/Function/Put.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../Interface/Put.js";
2-
32
/**
43
* @module Put
54
*

Target/Function/Redirect.d.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
import type Interface from "../Interface/Redirect.js";
2-
32
/**
43
* @module Redirect
54
*
65
*/
76
declare const _default: Interface;
87
export default _default;
98
export declare const Response: {
10-
new (
11-
body?:
12-
| import("@cloudflare/workers-types/experimental/index.js").BodyInit
13-
| null,
14-
init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit,
15-
): import("@cloudflare/workers-types/experimental/index.js").Response;
16-
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
17-
redirect(
18-
url: string,
19-
status?: number,
20-
): import("@cloudflare/workers-types/experimental/index.js").Response;
21-
json(
22-
any: any,
23-
maybeInit?:
24-
| import("@cloudflare/workers-types/experimental/index.js").ResponseInit
25-
| import("@cloudflare/workers-types/experimental/index.js").Response,
26-
): import("@cloudflare/workers-types/experimental/index.js").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;
2713
};

Target/Function/Response.d.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
import type Interface from "../Interface/Response.js";
2-
32
/**
43
* @module Response
54
*
65
*/
76
declare const _default: Interface;
87
export default _default;
98
export declare const Response: {
10-
new (
11-
body?:
12-
| import("@cloudflare/workers-types/experimental/index.js").BodyInit
13-
| null,
14-
init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit,
15-
): import("@cloudflare/workers-types/experimental/index.js").Response;
16-
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
17-
redirect(
18-
url: string,
19-
status?: number,
20-
): import("@cloudflare/workers-types/experimental/index.js").Response;
21-
json(
22-
any: any,
23-
maybeInit?:
24-
| import("@cloudflare/workers-types/experimental/index.js").ResponseInit
25-
| import("@cloudflare/workers-types/experimental/index.js").Response,
26-
): import("@cloudflare/workers-types/experimental/index.js").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;
2713
};

Target/Function/Uint8ArrayFromObject.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../Interface/Uint8ArrayFromObject.js";
2-
32
/**
43
* @module Uint8ArrayFromObject
54
*

Target/Interface/Access.d.ts

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
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
*/
106
export 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
}

Target/Interface/Data.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import type _Object from "./Object.js";
2-
32
/**
43
* @module Uint8ArrayObject
54
*
65
*/
76
export default interface Interface {
8-
Vector: _Object;
9-
Data: _Object;
7+
Vector: _Object;
8+
Data: _Object;
109
}

0 commit comments

Comments
 (0)