Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Not usable in TS. #242

Open
Ayfri opened this issue Mar 19, 2021 · 5 comments · May be fixed by #248
Open

Not usable in TS. #242

Ayfri opened this issue Mar 19, 2021 · 5 comments · May be fixed by #248

Comments

@Ayfri
Copy link

Ayfri commented Mar 19, 2021

In Typescript, even with the @types/benchmark library, I'm getting Benchmark.Suite is not a constructor every time no matter what I try.

@Uzlopak
Copy link

Uzlopak commented May 6, 2021

use ts-ignore flag

@Ayfri
Copy link
Author

Ayfri commented May 7, 2021

This is obviously not a solution...

@Uzlopak
Copy link

Uzlopak commented May 7, 2021

Well then fix the definitions

@horizon0514
Copy link

import * as Benchmark from 'benchmark';
this works

@Uzlopak
Copy link

Uzlopak commented Mar 7, 2022

If this is the issue, then we have to improve the exports or set esModuleInterop and allowSyntheticDefaultImports to true

@Uzlopak Uzlopak linked a pull request Mar 7, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants