npm.io
0.0.32 • Published 2 years ago

@types/gently

Licence
MIT
Version
0.0.32
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/gently

Summary

This package contains type definitions for gently (https://www.npmjs.org/package/gently).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gently.

index.d.ts

// Imported from: https://github.com/soywiz/typescript-node-definitions/gently.d.ts

export = Gently;

declare class Gently {
    constructor();
    hijacked: any[];

    expect(obj: any, method: string, stubFn?: (...args: any[]) => any): (...args: any[]) => any;
    expect(obj: any, method: string, count: number, stubFn: (...args: any[]) => any): (...args: any[]) => any;

    restore(obj: any, method: string): void;

    hijack(realRequire: (id: string) => any): (id: string) => any;

    stub(location: string, exportsName?: string): any;

    verify(msg?: string): void;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by bonnici.