typedserver/ts_edgeworker/interfaces/custom.ts
2024-05-13 23:24:08 +02:00

10 lines
304 B
TypeScript

import { WorkerEvent } from "../classes.workerevent.js";
export interface IResponderInstruction {
type: 'origin' | 'cache' | 'static' | 'redirect' | 'ads.txt';
cacheClientSideForMin?: number;
redirectUrl?: string;
}
export type TRequestResponser = (workerEventArg: WorkerEvent) => Promise<void>;