8000 fix: sync types with exports by karfau · Pull Request #717 · xmldom/xmldom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: sync types with exports #717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 5, 2024
Merged

fix: sync types with exports #717

merged 13 commits into from
Sep 5, 2024

Conversation

karfau
Copy link
Member
@karfau karfau commented Aug 31, 2024
  • DOMExceptionName
  • convert enums MIME_TYPE and NAMESPACE to var and literal type to reflect actual code
  • widen function parameters from enums to strings
  • hasDefaultHTMLNamespace
  • dropped /// <reference lib="dom" /> (added @types/node to examples for console and process.exit)
  • DOMImplementation, Document, Node, DocumentType
  • NodeList, LiveNodeList
  • Element, Attr, NamedNodeMap
  • CharacterData, CDATASection, Comment, Text
  • DocumentFragment
  • EntityReference, Entity, Notation, ProcessingInstruction

fixes #695

and export enum DOMExceptionName
Copy link
codecov bot commented Aug 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.35%. Comparing base (b862d13) to head (3b5af22).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #717      +/-   ##
==========================================
+ Coverage   94.26%   94.35%   +0.09%     
==========================================
  Files           8        8              
  Lines        2094     2092       -2     
  Branches      537      537              
==========================================
  Hits         1974     1974              
+ Misses        120      118       -2     

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

and drop Element methods from Node prototype
karfau added 4 commits August 31, 2024 08:52
for supporting `console.*`
to avoid CodeQL warning.
This revealed some issues in the implementation and types,
which were fixed along the way
- drop `ParseError.cause` since it never worked
@karfau karfau added bug Something isn't working types Anything regarding Typescript labels Aug 31, 2024
@karfau karfau added this to the 0.9.1 milestone Aug 31, 2024
@karfau karfau linked an issue Aug 31, 2024 that may be closed by this pull request
instead of just the enum values to be passed
- drop copied references to NoteListOf and generics
- include index.d.ts into `format` script
@karfau karfau marked this pull request as ready for review September 4, 2024 20:21
@karfau karfau merged commit ba39faa into master Sep 5, 2024
38 checks passed
@karfau karfau deleted the sync-types branch September 5, 2024 03:44
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.

Missing type definitions The current types include globals that don't exist in Node
1 participant
0