Nostalgic Perogi Monogramming

    @types/mock-require
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.1 • Public • Published

    Installation

    npm install --save @types/mock-require

    Summary

    This package contains type definitions for mock-require (https://github.com/boblauer/mock-require).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mock-require.

    index.d.ts

    // Type definitions for mock-require 2.0
    // Project: https://github.com/boblauer/mock-require
    // Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.4
    
    /// <reference types="node" />
    
    type StubFunction = (...params: any[]) => any;
    type Stub = object | StubFunction;
    
    interface Mock {
        (path: string, mockExport: string | Stub): void;
        stop(path: string): void;
        stopAll(): void;
        reRequire(path: string): any;
    }
    
    declare var mock: Mock;
    
    export = mock;

    Additional Details

    • Last updated: Thu, 23 Dec 2021 23:35:06 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by DefinitelyTyped.

    Keywords

    none

    Install

    npm i @types/mock-require

    DownloadsWeekly Downloads

    39,616

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    3.84 kB

    Total Files

    4

    Last publish

    Collaborators

    • types