mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
.
This commit is contained in:
20
packages/web/env.d.ts
vendored
Normal file
20
packages/web/env.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Environment bindings for the web worker
|
||||
* This extends the auto-generated worker-configuration.d.ts
|
||||
*/
|
||||
|
||||
import type { WorkerRpc } from "../worker/src/rpc"
|
||||
|
||||
declare module "cloudflare:workers" {
|
||||
interface Env {
|
||||
// Service binding to the worker RPC
|
||||
WORKER_RPC: Service<WorkerRpc>
|
||||
}
|
||||
}
|
||||
|
||||
// For compatibility with TanStack Start
|
||||
declare global {
|
||||
interface CloudflareEnv extends Env {}
|
||||
}
|
||||
|
||||
export {}
|
||||
Reference in New Issue
Block a user