mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
21 lines
513 B
Handlebars
21 lines
513 B
Handlebars
// This file infers types for the cloudflare:workers environment from your Alchemy Worker.
|
|
// @see https://alchemy.run/concepts/bindings/#type-safe-bindings
|
|
|
|
{{#if (eq webDeploy "alchemy")}}
|
|
import type { server } from "../../alchemy.run";
|
|
{{else}}
|
|
import type { server } from "./alchemy.run";
|
|
{{/if}}
|
|
|
|
export type CloudflareEnv = typeof server.Env;
|
|
|
|
declare global {
|
|
type Env = CloudflareEnv;
|
|
}
|
|
|
|
declare module "cloudflare:workers" {
|
|
namespace Cloudflare {
|
|
export interface Env extends CloudflareEnv {}
|
|
}
|
|
}
|