mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
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)
25 lines
634 B
TypeScript
25 lines
634 B
TypeScript
// Type definitions for fibers
|
|
// Project: https://github.com/laverdet/node-fibers
|
|
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
// Imported from: https://github.com/soywiz/typescript-node-definitions/fibers.d.ts
|
|
|
|
declare module "fibers" {
|
|
|
|
function fibers(callback: () => void): fibers.Fiber;
|
|
|
|
module fibers {
|
|
export var poolSize: number;
|
|
export var fibersCreated: number;
|
|
export var current: fibers.Fiber;
|
|
export function yield(value: any): any;
|
|
|
|
export interface Fiber {
|
|
run(step?: number): any;
|
|
}
|
|
}
|
|
|
|
export = fibers;
|
|
}
|