Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/revolt_api/routes.ts>TypedResponse

a typed revolt api client
Latest
interface TypedResponse
implements Response
import { type TypedResponse } from "https://deno.land/x/revolt_api@0.4.0/routes.ts";

Type Parameters

optional
T extends Record<string, unknown> | unknown = Record<string, unknown>

Methods

json<P = T extends Record<string, unknown> ? T["application/json"] : unknown>(): Promise<P>