0.1.1Updated 7 months ago
import { Response as OakResponse } from "jsr:@oak/oak@^17.1.4"

export interface ContextState<T = Record<string, any>> {
  date: Date
  id: string
  body: T
  headers: Headers
  ip: string
  respond: (body?: string, status?: number) => Response | OakResponse,
  json: (body?: Record<string, any>, status?: number) => Response,
}