@h4ad/serverless-adapter
Version:
Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Azure, Digital Ocean and many other clouds.
38 lines (35 loc) • 949 B
text/typescript
import { A as AdapterContract, a as AdapterRequest, O as OnErrorProps } from '../../adapter.contract-Cp2Jsh5V.cjs';
import { I as IEmptyResponse } from '../../constants-DVTIV7Xu.cjs';
import '../../headers-DjfGHDmI.cjs';
import 'http';
import 'node:http';
import '../../logger-F8qccesk.cjs';
/**
* The class that represents a dummy adapter that does nothing and can be used by the cloud that doesn't use adapters.
*
* @breadcrumb Adapters / DummyAdapter
* @public
*/
declare class DummyAdapter implements AdapterContract<any, any, void> {
/**
* {@inheritDoc}
*/
canHandle(): boolean;
/**
* {@inheritDoc}
*/
getAdapterName(): string;
/**
* {@inheritDoc}
*/
getRequest(): AdapterRequest;
/**
* {@inheritDoc}
*/
getResponse(): IEmptyResponse;
/**
* {@inheritDoc}
*/
onErrorWhileForwarding(props: OnErrorProps<any, void>): void;
}
export { DummyAdapter };