11 lines
479 B
TypeScript
11 lines
479 B
TypeScript
import { type RequestHandlerParams } from './abstract';
|
|
import { ExecutionContext } from './environment/workerd';
|
|
export { ExpoError } from './abstract';
|
|
export type RequestHandler<Env = unknown> = (req: Request, env: Env, ctx: ExecutionContext) => Promise<Response>;
|
|
/**
|
|
* Returns a request handler for EAS Hosting deployments.
|
|
*/
|
|
export declare function createRequestHandler<Env = unknown>(params: {
|
|
build?: string;
|
|
}, setup?: RequestHandlerParams): RequestHandler<Env>;
|