npm install --save @types/express-flash-notification
This package contains type definitions for express-flash-notification (https://github.com/carlosascari/express-flash-notification).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-flash-notification.
import express = require("express");
interface efnOptions {
sessionName?: string | undefined;
utilityName?: string | undefined;
localsName?: string | undefined;
viewName?: string | undefined;
beforeSingleRender?: ((item: any, callback: (err: any, item: any) => void) => void) | undefined;
afterAllRender?: ((htmlFragments: string[], callback: (err: any, html: string) => void) => void) | undefined;
}
declare function express_flash_notification(app: express.Application, options?: efnOptions, ...args: any[]): any;
declare namespace express_flash_notification {
const prototype: {};
}
declare global {
namespace Express {
interface FlashOptions {
type?: string | undefined;
message?: string | undefined;
redirect?: boolean | undefined;
url?: string | undefined;
}
interface Request {
flash(type: string, message?: string, redirect?: string | boolean): void;
flash(object: FlashOptions): void;
}
}
}
export = express_flash_notification;
- Last updated: Tue, 07 Nov 2023 03:09:36 GMT
- Dependencies: @types/express
These definitions were written by Mister4Eyes.