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-beta.26/types.d.ts";

Type Parameters

optional
DataType = ResponseLike
optional
ActionDataType = ResponseLike

Properties

optional
defer: boolean
optional
cacheTtl: number

Methods

optional
any(request: Request, context: Context): Promise<Response | void> | Response | void
optional
get(request: Request, context: Context): Promise<DataType> | DataType
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