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

0.5.5 • Public • Published

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.

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: Tue, 07 Nov 2023 03:09:36 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Mister4Eyes.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/express-flash-notification

Weekly Downloads

4

Version

0.5.5

License

MIT

Unpacked Size

4.95 kB

Total Files

5

Last publish

Collaborators

  • types