diff --git a/types/async.nexttick/async.nexttick-tests.ts b/types/async.nexttick/async.nexttick-tests.ts index 9d8acb33aa..90f6ae7f15 100644 --- a/types/async.nexttick/async.nexttick-tests.ts +++ b/types/async.nexttick/async.nexttick-tests.ts @@ -1,4 +1,4 @@ -import nextTick from 'async.nexttick'; +import {nextTick} from 'async.nexttick'; function calledOnNextTick(a: string): number { return parseInt(a, 10); diff --git a/types/async.nexttick/index.d.ts b/types/async.nexttick/index.d.ts index 22efd68fc7..a8572cc087 100644 --- a/types/async.nexttick/index.d.ts +++ b/types/async.nexttick/index.d.ts @@ -3,4 +3,4 @@ // Definitions by: Damien "pyrho" Rajon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export default function nextTick(callback: () => void, ...args: any[]): void; +export function nextTick(callback: () => void, ...args: any[]): void;