@tsed/platform-http
Version:
A TypeScript Framework on top of Express
30 lines (29 loc) • 1.17 kB
TypeScript
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;
}