0.0.10 • Published 6 months ago

@types/istanbul-middleware v0.0.10

Weekly downloads
232
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/istanbul-middleware

Summary

This package contains type definitions for istanbul-middleware (https://www.npmjs.com/package/istanbul-middleware).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-middleware.

index.d.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

/// <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
  • Global values: none

Credits

These definitions were written by Hookclaw.

0.0.10

6 months ago

0.0.9

7 months ago

0.0.8

8 months ago

0.0.7

3 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago