1.0.36 • Published 6 months ago
@types/api-error-handler v1.0.36
Installation
npm install --save @types/api-error-handler
Summary
This package contains type definitions for api-error-handler (https://github.com/expressjs/api-error-handler).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/api-error-handler.
index.d.ts
// Type definitions for api-error-handler v1.0.0
// Project: https://github.com/expressjs/api-error-handler
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as express from 'express';
declare namespace apiErrorHandler {
// Body response: the JSON returned by api-error-handler
// See https://github.com/expressjs/api-error-handler/blob/1.0.0/index.js
interface Response {
status: number;
stack?: string | undefined;
message: string;
// Client errors
code?: any;
name?: string | undefined;
type?: any;
}
}
declare function apiErrorHandler(options?: any): express.ErrorRequestHandler;
export = apiErrorHandler;
Additional Details
- Last updated: Wed, 07 Jul 2021 21:44:26 GMT
- Dependencies: @types/express
- Global values: none
Credits
These definitions were written by Tanguy Krotoff.
1.0.36
6 months ago
1.0.35
7 months ago
1.0.34
8 months ago
1.0.33
3 years ago
1.0.32
5 years ago
1.0.31
7 years ago
1.0.30
8 years ago
1.0.29
8 years ago
1.0.28-alpha
8 years ago
1.0.27-alpha
8 years ago
1.0.26-alpha
8 years ago
1.0.25-alpha
8 years ago
1.0.24-alpha
8 years ago
1.0.23-alpha
8 years ago
1.0.22-alpha
8 years ago
1.0.17-alpha
8 years ago
1.0.16-alpha
8 years ago