0.5.5 • Published 6 months ago
@types/express-flash-notification v0.5.5
Installation
npm install --save @types/express-flash-notification
Summary
This package contains type definitions for express-flash-notification (https://github.com/carlosascari/express-flash-notification).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-flash-notification.
index.d.ts
// Type definitions for express-flash-notification 0.5
// Project: https://github.com/carlosascari/express-flash-notification
// Definitions by: Mister4Eyes <https://github.com/Mister4Eyes>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
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;
Additional Details
- Last updated: Thu, 08 Jul 2021 12:01:18 GMT
- Dependencies: @types/express
- Global values: none
Credits
These definitions were written by Mister4Eyes.