@types/istanbul-middleware
Advanced tools
Comparing version
@@ -17,4 +17,4 @@ // Type definitions for istanbul-middleware | ||
export function hookLoader(matcherOrRoot:Matcher|string, opts?:{ | ||
postLoadHook?:PostLoadHook, | ||
verbose?:boolean | ||
postLoadHook?:PostLoadHook | undefined, | ||
verbose?:boolean | undefined | ||
//and istanbul.Instrumenter(...opts) | ||
@@ -24,3 +24,3 @@ }): void; | ||
export function createHandler(opts?:{ | ||
resetOnGet?:boolean | ||
resetOnGet?:boolean | undefined | ||
}): any; | ||
@@ -32,6 +32,6 @@ | ||
export function createClientHandler(root:string,opts?:{ | ||
matcher?:ClientMatcher, | ||
pathTransformer?:PathTransformer, | ||
verbose?:boolean | ||
matcher?:ClientMatcher | undefined, | ||
pathTransformer?:PathTransformer | undefined, | ||
verbose?:boolean | undefined | ||
}): any; | ||
} |
{ | ||
"name": "@types/istanbul-middleware", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "TypeScript definitions for istanbul-middleware", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-middleware", | ||
"license": "MIT", | ||
@@ -14,5 +15,7 @@ "contributors": [ | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/istanbul-middleware" | ||
}, | ||
@@ -23,4 +26,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "67b41a010f28de99595b85638dc7fdacb2ebf9e750efc6dc42cd7eb212fc9d4d", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "2a2ffce54ca6a3027175ede7f232891e4205d1ffd51472d499bed9bba7580c6a", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,48 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-middleware | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-middleware. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-middleware/index.d.ts) | ||
````ts | ||
// Type definitions for istanbul-middleware | ||
// Project: https://www.npmjs.com/package/istanbul-middleware | ||
// Definitions by: Hookclaw <https://github.com/hookclaw> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
Additional Details | ||
* Last updated: Wed, 25 Oct 2017 18:38:02 GMT | ||
* Dependencies: express | ||
/// <reference types="express" /> | ||
declare module "istanbul-middleware" { | ||
import * as express from "express"; | ||
type Matcher = (file:string)=> boolean; | ||
type PostLoadHookFn = (file:any)=> {}; | ||
type PostLoadHook = (matcherfn:Matcher,transformer:any,verbose:boolean)=>PostLoadHookFn; | ||
export function hookLoader(matcherOrRoot:Matcher|string, opts?:{ | ||
postLoadHook?:PostLoadHook | undefined, | ||
verbose?:boolean | undefined | ||
//and istanbul.Instrumenter(...opts) | ||
}): void; | ||
export function createHandler(opts?:{ | ||
resetOnGet?:boolean | undefined | ||
}): any; | ||
type ClientMatcher = (req:express.Request)=> boolean; | ||
type PathTransformer = (req:express.Request)=> string; | ||
export function createClientHandler(root:string,opts?:{ | ||
matcher?:ClientMatcher | undefined, | ||
pathTransformer?:PathTransformer | undefined, | ||
verbose?:boolean | undefined | ||
}): any; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 14:23:21 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Hookclaw <https://github.com/hookclaw>. | ||
These definitions were written by [Hookclaw](https://github.com/hookclaw). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5116
43.75%1
-50%55
223.53%