Skip to content

fix: add missing type definitions#721

Merged
karfau merged 1 commit into
xmldom:masterfrom
Mathias-S:add-missing-types
Sep 5, 2024
Merged

fix: add missing type definitions#721
karfau merged 1 commit into
xmldom:masterfrom
Mathias-S:add-missing-types

Conversation

@Mathias-S

@Mathias-S Mathias-S commented Sep 5, 2024

Copy link
Copy Markdown
Contributor

Adds types for properties that are exported,
but are missing in index.d.ts:

  • Document.domElement
  • Element.tagName

Fixes #720

Adds types for properties that are exported,
but are missing in index.d.ts:

- `Document.domElement`
- `Element.tagName`
@karfau

karfau commented Sep 5, 2024

Copy link
Copy Markdown
Member

Thx a lot!

@karfau karfau added bug Something isn't working types Anything regarding Typescript labels Sep 5, 2024
@codecov

codecov Bot commented Sep 5, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.35%. Comparing base (326e703) to head (b00bac7).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #721   +/-   ##
=======================================
  Coverage   94.35%   94.35%           
=======================================
  Files           8        8           
  Lines        2092     2092           
  Branches      537      537           
=======================================
  Hits         1974     1974           
  Misses        118      118           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@karfau karfau merged commit 860279c into xmldom:master Sep 5, 2024
@karfau karfau added this to the 0.9.2 milestone Sep 5, 2024
MatthijsBurgh added a commit to RobotWebTools/roslibjs that referenced this pull request Sep 25, 2024
**Public API Changes**
Extend element typing

**Description**
Element can also be null since `@xmldom/[email protected]` (See xmldom/xmldom#721) 

Fixes #778
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working types Anything regarding Typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS: Missing types for Document.documentElement and Element.tagName

2 participants