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
fix: change Node#parentElement to allow non-HTMLElement parents (#77)
* Fix Node.parentElement type from HTMLElement to Element
- Change Node.parentElement type from HTMLElement | null to Element | null
- This fixes compatibility with SVG elements and other non-HTML elements
- Add comprehensive tests to verify the fix works correctly
- Resolves issue #74
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* ai: impove CLAUDE.md
---------
Co-authored-by: Claude <[email protected]>
Copy file name to clipboardExpand all lines: CLAUDE.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ This project generates alternative TypeScript standard library definitions with
21
21
22
22
-**`TypeScript/`** - Git submodule containing the official TypeScript repository for source lib files
23
23
24
+
- Note: `TypeScript/lib/lib.dom.d.ts` and `TypeScript/lib/lib.es5.d.ts` are HUGE. Never try to read the whole file at once. Always grep for specific parts.
25
+
24
26
-**`tests/`** - Type-level tests using `tsd` to verify the improved type definitions work correctly
0 commit comments