@types/express-flash
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -7,3 +7,3 @@ // Type definitions for express-flash 0.0 | ||
import express = require('express'); | ||
import express = require("express"); | ||
@@ -10,0 +10,0 @@ declare global { |
{ | ||
"name": "@types/express-flash", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "TypeScript definitions for express-flash", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-flash", | ||
"license": "MIT", | ||
@@ -29,4 +30,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "05e2ff2ddb4921be711f5292bdd81262395dcdb29322fdac9910e5b5c030c736", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "aa92bb0463651adc55a0b76db1a2f9daefac1739a3ad743300b55c3e412d5e3a", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,5 +9,29 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-flash. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-flash/index.d.ts) | ||
````ts | ||
// Type definitions for express-flash 0.0 | ||
// Project: https://github.com/RGBboy/express-flash | ||
// Definitions by: Ian Mobley <https://github.com/iMobs> | ||
// Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import express = require("express"); | ||
declare global { | ||
namespace Express { | ||
interface Request { | ||
flash(message?: string): { [key: string]: string[] }; | ||
flash(event: string, message: string | string[]): any; | ||
} | ||
} | ||
} | ||
declare function flash(): express.RequestHandler; | ||
export = flash; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 10 Feb 2020 21:08:43 GMT | ||
* Last updated: Sat, 23 Sep 2023 17:07:22 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express) | ||
@@ -17,2 +41,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Ian Mobley (https://github.com/iMobs), and Piotr Błażejewicz (https://github.com/peterblazejewicz). | ||
These definitions were written by [Ian Mobley](https://github.com/iMobs), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4146
1
41