developit / web-worker

Consistent Web Workers in browser and Node.
https://npm.im/web-worker
Apache License 2.0
1.06k stars 55 forks source link

No default export warning in vscode #22

Open birkskyum opened 2 years ago

birkskyum commented 2 years ago

When writing:

import Worker from 'web-worker';

I similarly see: No default export found in imported module "web-worker" as a vscode warning

It's strange, because to me it looks like there is a default export:

type ConstructorOf<C> = { new (...args: any[]): C }

declare const _default: ConstructorOf<Worker>
export default _default