DefinitelyTyped/types/async.nexttick/async.nexttick-tests.ts
2017-07-25 10:34:23 -07:00

12 lines
198 B
TypeScript

import { nextTick } from 'async.nexttick';
function calledOnNextTick(a: string): number {
return parseInt(a, 10);
}
const aString = 'Hi!';
nextTick(() => {
calledOnNextTick(aString);
});