18 lines
535 B
TypeScript
18 lines
535 B
TypeScript
import { type PlatformProxy } from "wrangler";
|
|
|
|
// When using `wrangler.toml` to configure bindings,
|
|
// `wrangler types` will generate types for those bindings
|
|
// into the global `Env` interface.
|
|
// Need this empty interface so that typechecking passes
|
|
// even if no `wrangler.toml` exists.
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
interface Env {}
|
|
|
|
type Cloudflare = Omit<PlatformProxy<Env>, "dispose">;
|
|
|
|
declare module "@remix-run/cloudflare" {
|
|
interface AppLoadContext {
|
|
cloudflare: Cloudflare;
|
|
}
|
|
}
|