You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add types entry exports[0]. I'm sad TypeScript doesn't seem to be
using the plain old types field but it isn't.
- Replace index.d.ts' `export default` with `export =`[1]. From what I
can tell, `module.exports` is always used for all entrypoints so this
is the correct definition.
- Use the Worker var declaration from lib.dom.d.ts. I think this is fine
since the old definition already used the Worker interface from the
same file. This typing is more accurate, easier to read,d less likely
to become outdated, and less code.
Bug: developit#20developit#22
[0]: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#packagejson-exports-imports-and-self-referencing
[1]: microsoft/TypeScript#7185 (comment)
When writing:
I similarly see:
No default export found in imported module "web-worker"
as a vscode warningIt's strange, because to me it looks like there is a default export:
The text was updated successfully, but these errors were encountered: