UNPKG

@ffsm/napi

Version:

Napi - A framework using with Next.js for building APIs.

15 lines (14 loc) 561 B
import { NextResponse } from "next/server"; import { NapiContext, NapiExecuteContext } from "./context"; import { NapiController } from "./controller"; export declare class NapiJsonSchema { constructor(); } export declare class NapiResponse { private readonly controller; private readonly context; private readonly switchInstance; constructor(controller: NapiController, context: NapiContext, switchInstance: NapiExecuteContext<NapiResponse>); getInit(): Promise<ResponseInit>; send(data: unknown): Promise<NextResponse<unknown>>; }