Installation
npm install --save @types/express-actuator
Summary
This package contains type definitions for express-actuator (https://www.npmjs.org/package/express-actuator).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-actuator.
import express = require("express");
declare function actuator(options?: actuator.Options): express.RequestHandler;
declare namespace actuator {
type InfoGitMode = "simple" | "full";
interface Options {
basePath?: string | undefined;
infoGitMode?: InfoGitMode | undefined;
infoDateFormat?: string | undefined;
infoBuildOptions?: Record<string, any> | undefined;
customEndpoints?: CustomEndpoint[] | undefined;
}
interface CustomEndpoint {
id: string;
controller: CustomControllerMethod;
}
interface CustomControllerMethod {
(req?: any, res?: any): void;
}
}
export = actuator;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:36 GMT
- Dependencies: @types/express
Credits
These definitions were written by Eduardo Silva, and Raúl Cruz.