Skip to content

Commit

Permalink
Add comment about how the main file is a script not a module.
Browse files Browse the repository at this point in the history
  • Loading branch information
rictic committed Jan 31, 2024
1 parent af7d389 commit 4b1b73f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
* http://polymer.github.io/PATENTS.txt
*/

/**
* Note: this file is a script, not a module, so toplevel
* interfaces are global. This is relevent because those named
* after existing global TypeScript types actually add to those
* types, as though they were declared in a `declare global` in a module.
*/

interface CustomElementConstructor {
observedAttributes?: Array<string>;
formAssociated?: boolean;
Expand Down

0 comments on commit 4b1b73f

Please sign in to comment.