Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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#20 developit#22 [0]: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#packagejson-exports-imports-and-self-referencing [1]: microsoft/TypeScript#7185 (comment)
- Loading branch information