@workers-community/workers-types 4.20250320.0 → 4.20250321.0

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.
Files changed (3) hide show
  1. package/index.d.ts +7 -0
  2. package/index.ts +7 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -6262,6 +6262,13 @@ declare module "cloudflare:workers" {
6262
6262
  }
6263
6263
  export const env: Cloudflare.Env;
6264
6264
  }
6265
+ interface SecretsStoreSecret {
6266
+ /**
6267
+ * Get a secret from the Secrets Store, returning a string of the secret value
6268
+ * if it exists, or throws an error if it does not exist
6269
+ */
6270
+ get(): Promise<string>;
6271
+ }
6265
6272
  declare module "cloudflare:sockets" {
6266
6273
  function _connect(
6267
6274
  address: string | SocketAddress,
package/index.ts CHANGED
@@ -6143,6 +6143,13 @@ export declare namespace Rpc {
6143
6143
  export declare namespace Cloudflare {
6144
6144
  interface Env {}
6145
6145
  }
6146
+ export interface SecretsStoreSecret {
6147
+ /**
6148
+ * Get a secret from the Secrets Store, returning a string of the secret value
6149
+ * if it exists, or throws an error if it does not exist
6150
+ */
6151
+ get(): Promise<string>;
6152
+ }
6146
6153
  export declare namespace TailStream {
6147
6154
  interface Header {
6148
6155
  readonly name: string;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "author": "Workers Community",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250320.0",
10
+ "version": "4.20250321.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",