27 lines
436 B
TypeScript
27 lines
436 B
TypeScript
import type { DurableObjectNamespace } from '@cloudflare/workers-types';
|
|
|
|
declare global {
|
|
namespace App {
|
|
interface Platform {
|
|
env: {
|
|
COUNTER: DurableObjectNamespace;
|
|
DB: D1Database;
|
|
};
|
|
context: {
|
|
waitUntil(promise: Promise<any>): void;
|
|
};
|
|
caches: CacheStorage & { default: Cache };
|
|
}
|
|
interface Locals {
|
|
user?: {
|
|
id: number;
|
|
email: string;
|
|
nickname: string;
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|
|
|