Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Nov 22, 2024
1 parent 5b397c3 commit 24c2b1f
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 77 deletions.
45 changes: 26 additions & 19 deletions Target/Type/Environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
import type Zod from "zod";

/**
* @module Environment
*
*/
export type Type = Zod.infer<typeof Environment>;
export type { Type as default };
export declare const Environment: Zod.ZodObject<{
DISCORD_APPLICATION_ID: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_CLIENT_ID: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_CLIENT_SECRET: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_PUBLIC_KEY: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_TOKENS: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
}, "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<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_CLIENT_ID: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_CLIENT_SECRET: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_PUBLIC_KEY: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
DISCORD_TOKENS: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
},
"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;
}
>;
76 changes: 48 additions & 28 deletions Target/Variable/Environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,49 @@
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<import("zod").ZodString>>;
DISCORD_CLIENT_ID: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_CLIENT_SECRET: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_PUBLIC_KEY: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_TOKENS: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
}, "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<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_CLIENT_ID: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_CLIENT_SECRET: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_PUBLIC_KEY: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_TOKENS: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
},
"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;
91 changes: 61 additions & 30 deletions Target/Variable/Worker.d.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,67 @@
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<any>;
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<any>;
};
export default _default;
export declare const Environment: import("zod").ZodObject<{
DISCORD_APPLICATION_ID: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_CLIENT_ID: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_CLIENT_SECRET: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_PUBLIC_KEY: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_TOKENS: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
}, "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<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_CLIENT_ID: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_CLIENT_SECRET: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_PUBLIC_KEY: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_TOKENS: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
},
"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;
};

0 comments on commit 24c2b1f

Please sign in to comment.