UNPKG

@ryancavanaugh/fibers

Version:

Type definitions for fibers from https://www.github.com/DefinitelyTyped/DefinitelyTyped

24 lines (16 loc) 666 B
// Type definitions for fibers // Project: https://github.com/laverdet/node-fibers // Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Imported from: https://github.com/soywiz/typescript-node-definitions/fibers.d.ts declare function fibers(callback: () => void): fibers.Fiber; declare namespace 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;