@types/express-async-wrap
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/express-async-wrap

Summary

This package contains type definitions for express-async-wrap (https://github.com/Greenfields/express-async-wrap#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-async-wrap.

index.d.ts

import { NextFunction } from "connect";
import { ErrorRequestHandler, Request, RequestHandler, Response } from "express-serve-static-core";

declare function asyncWrap(
    handler: (req: Request, res: Response, next: NextFunction) => Promise<void>,
): RequestHandler;

declare function asyncWrap(
    handler: (err: any, req: Request, res: Response, next: NextFunction) => Promise<void>,
): ErrorRequestHandler;

export default asyncWrap;

Additional Details

Credits

These definitions were written by Remy Oudemans.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/express-async-wrap

Weekly Downloads

1,248

Version

1.0.3

License

MIT

Unpacked Size

3.75 kB

Total Files

5

Last publish

Collaborators

  • types