UNPKG

@tsed/platform-http

Version:
30 lines (29 loc) 1.17 kB
import { type ProviderOpts } from "@tsed/di"; import { type PlatformContextHandler, PlatformLayer } from "@tsed/platform-router"; import { PlatformAdapter, PlatformContext, type PlatformStaticsOptions } from "../common/index.js"; export declare class FakeAdapter extends PlatformAdapter<any> { readonly NAME: string; providers: ProviderOpts[]; static createFakeRawDriver(): { (): void; use: () => any; all: () => any; get: () => any; patch: () => any; post: () => any; put: () => any; head: () => any; delete: () => any; options: () => any; }; createApp(): { app: any; callback(): any; }; multipart(options: TsED.MultipartFileOptions): TsED.MultipartFileInstance; statics(endpoint: string, options: PlatformStaticsOptions): any; bodyParser(type: string): any; mapLayers(layers: PlatformLayer[]): void; mapHandler(handler: PlatformContextHandler<PlatformContext>): PlatformContextHandler<PlatformContext<import("../common/index.js").PlatformRequest<any>, import("../common/index.js").PlatformResponse<any>>>; useContext(): void; }