mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
imported 25 definitions from typescript-node-definitions
first batch: the easy pickings - as per https://github.com/borisyankov/DefinitelyTyped/issues/115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/// <reference path="gently.d.ts" />
|
||||
|
||||
import Gently = require('gently');
|
||||
|
||||
var g = new Gently();
|
||||
|
||||
g.expect(null, '', () => {
|
||||
// ..
|
||||
})();
|
||||
g.expect(null, '', 0, () => {
|
||||
// ..
|
||||
})();
|
||||
|
||||
g.restore(null, '');
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
// Type definitions for gently
|
||||
// Project: https://www.npmjs.org/package/gently
|
||||
// Definitions by: bonnici <https://github.com/bonnici>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
// Imported from: https://github.com/soywiz/typescript-node-definitions/gently.d.ts
|
||||
|
||||
declare module "gently" {
|
||||
export = Gently;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user