mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
642 B
TypeScript
24 lines
642 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/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(value?: any): any;
|
|
}
|
|
}
|
|
|
|
export = fibers;
|