Skip to content

Commit

Permalink
Do not declare global types/constants (#524)
Browse files Browse the repository at this point in the history
The submit-event polyfill was being interpreted by TSC as a script and not a module.

This caused all the declarations there to be treated as global in the exported types.
  • Loading branch information
grncdr authored Jun 19, 2022
1 parent d0125a5 commit f307b8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/polyfills/submit-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ function clickCaptured(event: Event) {
},
})
})()

// Ensure TypeScript parses this file as a module
export {}

0 comments on commit f307b8d

Please sign in to comment.