mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 00:59:29 +08:00
12 lines
198 B
TypeScript
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);
|
|
});
|