Skip to main content
Module

x/darkflare/mod.ts>Get

The API Engine
Go to Latest
variable Get
import { Get } from "https://deno.land/x/darkflare@v5.0.0/mod.ts";

type

<B = unknown, Q = unknown, H = unknown, C = unknown, P = unknown>(schema: { body?: B; query?: Q; headers?: H; cookies?: C; parameters?: P; }, handler: (ctx: DarkflareContext & { req: { body: B extends TSchema ? Static<B> : B; query: Q extends TSchema ? Static<Q> : Q; headers: H extends TSchema ? Static<H> : H; cookies: C extends TSchema ? Static<C> : C; parameters: P extends TSchema ? Static<P> : P; }; }) => any) => unknown