Installation
npm install --save @types/rewire
Summary
This package contains type definitions for rewire (https://github.com/jhnns/rewire).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rewire.
declare namespace RewireInterfaces {
interface RewiredModule {
__set__(obj: { [variable: string]: any }): () => void;
__set__(name: string, value: any): () => void;
__get__<T = any>(name: string): T;
__with__(obj: { [variable: string]: any }): (callback: () => any) => any;
}
}
declare function rewire<T = { [key: string]: any }>(filename: string): RewireInterfaces.RewiredModule & T;
export = rewire;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Borislav Zhivkov, and Federico Caselli.