Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aleph/types.d.ts>Data

The Full-stack Framework in Deno.
Go to Latest
interface Data
import { type Data } from "https://deno.land/x/aleph@1.0.0-alpha.63/types.d.ts";

Type Parameters

optional
GetDataType = ResponseLike
optional
ActionDataType = ResponseLike

Properties

optional
cacheTtl: number

Methods

optional
any(request: Request, context: Context): Promise<Response | void> | Response | void
optional
get(request: Request, context: Context): Promise<GetDataType> | GetDataType
optional
post(request: Request, context: Context): Promise<ActionDataType> | ActionDataType
optional
put(request: Request, context: Context): Promise<ActionDataType> | ActionDataType
optional
patch(request: Request, context: Context): Promise<ActionDataType> | ActionDataType
optional
delete(request: Request, context: Context): Promise<ActionDataType> | ActionDataType