mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +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)
14 lines
239 B
TypeScript
14 lines
239 B
TypeScript
/// <reference path="fibers.d.ts" />
|
|
|
|
import fibers = require('fibers');
|
|
|
|
var fib: fibers.Fiber;
|
|
var x:any = null;
|
|
var func: () => void = null;
|
|
|
|
fib = fibers(func);
|
|
fib = fibers.current;
|
|
x = fibers.yield(x);
|
|
x = fib.run();
|
|
x = fib.run(x);
|