diff --git a/types/multi-progress/index.d.ts b/types/multi-progress/index.d.ts index a98057ecc8..31dd11b710 100644 --- a/types/multi-progress/index.d.ts +++ b/types/multi-progress/index.d.ts @@ -8,7 +8,11 @@ import * as ProgressBar from 'progress'; import { Stream } from 'stream'; -export default class MultiProgress { +export as namespace MultiProgress; + +export = MultiProgress; + +declare class MultiProgress { /** * Create a new @see MultiProgress with the given stream, or stderr by default * @param stream A stream to write the progress bars to @@ -40,3 +44,5 @@ export default class MultiProgress { */ update: (index: number, value: number, options?: any) => void; } + +declare namespace MultiProgress {} diff --git a/types/multi-progress/multi-progress-tests.ts b/types/multi-progress/multi-progress-tests.ts index 9dde27c16b..b14806b7c5 100644 --- a/types/multi-progress/multi-progress-tests.ts +++ b/types/multi-progress/multi-progress-tests.ts @@ -3,7 +3,7 @@ */ // require the library -import MultiProgress from 'multi-progress'; +import * as MultiProgress from 'multi-progress'; // spawn an instance with the optional stream to write to // use of `new` is optional