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 compiling a TypeScript project that refers to this package, I get the following error:
The text was updated successfully, but these errors were encountered: