TypeScript packages depending on this and importing `@sindresorhus/is` end up with the lib.dom.d.ts in global scope thanks to the deleted lines. That's almost never what any user of the package would want, and it has the side effect of putting a slew of common variable names (including the variable names "event" and "name" and "parent") into a global scope. It's particularly sinister because on many of these, TypeScript won't complain, for example "name" is of type never. |
||
|---|---|---|
| .. | ||
| index.ts | ||