19 lines
316 B
TypeScript
19 lines
316 B
TypeScript
import type { DurableObjectNamespace } from '@cloudflare/workers-types';
|
|
|
|
declare global {
|
|
namespace App {
|
|
interface Platform {
|
|
env: {
|
|
COUNTER: DurableObjectNamespace;
|
|
};
|
|
context: {
|
|
waitUntil(promise: Promise<any>): void;
|
|
};
|
|
caches: CacheStorage & { default: Cache };
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|
|
|