From c20383b2d7e0e7a7b2949f8ba49bd87a341cd14e Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 23 Nov 2024 22:31:49 +0200 Subject: [PATCH] --- Target/Type/Environment.d.ts | 45 +++++++--------- Target/Variable/Environment.d.ts | 76 ++++++++++---------------- Target/Variable/Worker.d.ts | 91 +++++++++++--------------------- 3 files changed, 77 insertions(+), 135 deletions(-) diff --git a/Target/Type/Environment.d.ts b/Target/Type/Environment.d.ts index d724159..9a90076 100644 --- a/Target/Type/Environment.d.ts +++ b/Target/Type/Environment.d.ts @@ -1,33 +1,26 @@ import type Zod from "zod"; - /** * @module Environment * */ export type Type = Zod.infer; export type { Type as default }; -export declare const Environment: Zod.ZodObject< - { - DISCORD_APPLICATION_ID: Zod.ZodDefault>; - DISCORD_CLIENT_ID: Zod.ZodDefault>; - DISCORD_CLIENT_SECRET: Zod.ZodDefault>; - DISCORD_PUBLIC_KEY: Zod.ZodDefault>; - DISCORD_TOKENS: Zod.ZodDefault>; - }, - "strip", - Zod.ZodTypeAny, - { - DISCORD_APPLICATION_ID: string; - DISCORD_CLIENT_ID: string; - DISCORD_CLIENT_SECRET: string; - DISCORD_PUBLIC_KEY: string; - DISCORD_TOKENS: string; - }, - { - DISCORD_APPLICATION_ID?: string | undefined; - DISCORD_CLIENT_ID?: string | undefined; - DISCORD_CLIENT_SECRET?: string | undefined; - DISCORD_PUBLIC_KEY?: string | undefined; - DISCORD_TOKENS?: string | undefined; - } ->; +export declare const Environment: Zod.ZodObject<{ + DISCORD_APPLICATION_ID: Zod.ZodDefault>; + DISCORD_CLIENT_ID: Zod.ZodDefault>; + DISCORD_CLIENT_SECRET: Zod.ZodDefault>; + DISCORD_PUBLIC_KEY: Zod.ZodDefault>; + DISCORD_TOKENS: Zod.ZodDefault>; +}, "strip", Zod.ZodTypeAny, { + DISCORD_APPLICATION_ID: string; + DISCORD_CLIENT_ID: string; + DISCORD_CLIENT_SECRET: string; + DISCORD_PUBLIC_KEY: string; + DISCORD_TOKENS: string; +}, { + DISCORD_APPLICATION_ID?: string | undefined; + DISCORD_CLIENT_ID?: string | undefined; + DISCORD_CLIENT_SECRET?: string | undefined; + DISCORD_PUBLIC_KEY?: string | undefined; + DISCORD_TOKENS?: string | undefined; +}>; diff --git a/Target/Variable/Environment.d.ts b/Target/Variable/Environment.d.ts index 78e62c2..26975b5 100644 --- a/Target/Variable/Environment.d.ts +++ b/Target/Variable/Environment.d.ts @@ -1,49 +1,29 @@ -export declare const string: ( - params?: - | ({ - errorMap?: import("zod").ZodErrorMap | undefined; - invalid_type_error?: string | undefined; - required_error?: string | undefined; - message?: string | undefined; - description?: string | undefined; - } & { - coerce?: true | undefined; - }) - | undefined, -) => import("zod").ZodString; -declare const _default: import("zod").ZodObject< - { - DISCORD_APPLICATION_ID: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_CLIENT_ID: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_CLIENT_SECRET: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_PUBLIC_KEY: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_TOKENS: import("zod").ZodDefault< - import("zod").ZodOptional - >; - }, - "strip", - import("zod").ZodTypeAny, - { - DISCORD_APPLICATION_ID: string; - DISCORD_CLIENT_ID: string; - DISCORD_CLIENT_SECRET: string; - DISCORD_PUBLIC_KEY: string; - DISCORD_TOKENS: string; - }, - { - DISCORD_APPLICATION_ID?: string | undefined; - DISCORD_CLIENT_ID?: string | undefined; - DISCORD_CLIENT_SECRET?: string | undefined; - DISCORD_PUBLIC_KEY?: string | undefined; - DISCORD_TOKENS?: string | undefined; - } ->; +export declare const string: (params?: ({ + errorMap?: import("zod").ZodErrorMap | undefined; + invalid_type_error?: string | undefined; + required_error?: string | undefined; + message?: string | undefined; + description?: string | undefined; +} & { + coerce?: true | undefined; +}) | undefined) => import("zod").ZodString; +declare const _default: import("zod").ZodObject<{ + DISCORD_APPLICATION_ID: import("zod").ZodDefault>; + DISCORD_CLIENT_ID: import("zod").ZodDefault>; + DISCORD_CLIENT_SECRET: import("zod").ZodDefault>; + DISCORD_PUBLIC_KEY: import("zod").ZodDefault>; + DISCORD_TOKENS: import("zod").ZodDefault>; +}, "strip", import("zod").ZodTypeAny, { + DISCORD_APPLICATION_ID: string; + DISCORD_CLIENT_ID: string; + DISCORD_CLIENT_SECRET: string; + DISCORD_PUBLIC_KEY: string; + DISCORD_TOKENS: string; +}, { + DISCORD_APPLICATION_ID?: string | undefined; + DISCORD_CLIENT_ID?: string | undefined; + DISCORD_CLIENT_SECRET?: string | undefined; + DISCORD_PUBLIC_KEY?: string | undefined; + DISCORD_TOKENS?: string | undefined; +}>; export default _default; diff --git a/Target/Variable/Worker.d.ts b/Target/Variable/Worker.d.ts index 2ef0c44..d9358fc 100644 --- a/Target/Variable/Worker.d.ts +++ b/Target/Variable/Worker.d.ts @@ -1,67 +1,36 @@ import type { Request, ResponseInit } from "@cloudflare/workers-types"; - declare const _default: { - fetch( - request: Request, - { - DISCORD_PUBLIC_KEY, - }?: { - DISCORD_APPLICATION_ID: string; - DISCORD_CLIENT_ID: string; - DISCORD_CLIENT_SECRET: string; - DISCORD_PUBLIC_KEY: string; - DISCORD_TOKENS: string; - }, - ): Promise; + fetch(request: Request, { DISCORD_PUBLIC_KEY }?: { + DISCORD_APPLICATION_ID: string; + DISCORD_CLIENT_ID: string; + DISCORD_CLIENT_SECRET: string; + DISCORD_PUBLIC_KEY: string; + DISCORD_TOKENS: string; + }): Promise; }; export default _default; -export declare const Environment: import("zod").ZodObject< - { - DISCORD_APPLICATION_ID: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_CLIENT_ID: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_CLIENT_SECRET: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_PUBLIC_KEY: import("zod").ZodDefault< - import("zod").ZodOptional - >; - DISCORD_TOKENS: import("zod").ZodDefault< - import("zod").ZodOptional - >; - }, - "strip", - import("zod").ZodTypeAny, - { - DISCORD_APPLICATION_ID: string; - DISCORD_CLIENT_ID: string; - DISCORD_CLIENT_SECRET: string; - DISCORD_PUBLIC_KEY: string; - DISCORD_TOKENS: string; - }, - { - DISCORD_APPLICATION_ID?: string | undefined; - DISCORD_CLIENT_ID?: string | undefined; - DISCORD_CLIENT_SECRET?: string | undefined; - DISCORD_PUBLIC_KEY?: string | undefined; - DISCORD_TOKENS?: string | undefined; - } ->; +export declare const Environment: import("zod").ZodObject<{ + DISCORD_APPLICATION_ID: import("zod").ZodDefault>; + DISCORD_CLIENT_ID: import("zod").ZodDefault>; + DISCORD_CLIENT_SECRET: import("zod").ZodDefault>; + DISCORD_PUBLIC_KEY: import("zod").ZodDefault>; + DISCORD_TOKENS: import("zod").ZodDefault>; +}, "strip", import("zod").ZodTypeAny, { + DISCORD_APPLICATION_ID: string; + DISCORD_CLIENT_ID: string; + DISCORD_CLIENT_SECRET: string; + DISCORD_PUBLIC_KEY: string; + DISCORD_TOKENS: string; +}, { + DISCORD_APPLICATION_ID?: string | undefined; + DISCORD_CLIENT_ID?: string | undefined; + DISCORD_CLIENT_SECRET?: string | undefined; + DISCORD_PUBLIC_KEY?: string | undefined; + DISCORD_TOKENS?: string | undefined; +}>; export declare const Response: { - new ( - body?: import("@cloudflare/workers-types").BodyInit | null, - init?: ResponseInit, - ): import("@cloudflare/workers-types").Response; - prototype: import("@cloudflare/workers-types").Response; - redirect( - url: string, - status?: number, - ): import("@cloudflare/workers-types").Response; - json( - any: any, - maybeInit?: ResponseInit | import("@cloudflare/workers-types").Response, - ): import("@cloudflare/workers-types").Response; + new (body?: import("@cloudflare/workers-types").BodyInit | null, init?: ResponseInit): import("@cloudflare/workers-types").Response; + prototype: import("@cloudflare/workers-types").Response; + redirect(url: string, status?: number): import("@cloudflare/workers-types").Response; + json(any: any, maybeInit?: ResponseInit | import("@cloudflare/workers-types").Response): import("@cloudflare/workers-types").Response; };