Skip to content

Missing type definitions #695

Description

@kboshold

Describe the bug
The current index.d.ts is missing some type definitions

To Reproduce
Import @xmldom/xmldom in TypeScript and try to use everything that is exported in the index.js file

Expected behavior
Everything from the index.js is defined in the index.d.ts

Runtime & Version:
xmldom version: master branch
runtime version: -
other related software and version: -

Additional context
Missing definitions/exports:

// source: index.js

var conventions = require('./conventions');
exports.hasDefaultHTMLNamespace = conventions.hasDefaultHTMLNamespace;

var dom = require('./dom');
exports.DOMImplementation = dom.DOMImplementation;
exports.Attr = dom.Attr;
exports.CDATASection = dom.CDATASection;
exports.CharacterData = dom.CharacterData;
exports.Comment = dom.Comment;
exports.Document = dom.Document;
exports.DocumentFragment = dom.DocumentFragment;
exports.DocumentType = dom.DocumentType;
exports.Element = dom.Element;
exports.EntityReference = dom.EntityReference;
exports.Entity = dom.Entity;
exports.NamedNodeMap = dom.NamedNodeMap;
exports.Node = dom.Node;
exports.NodeList = dom.NodeList;
exports.Notation = dom.Notation;
exports.ProcessingInstruction = dom.ProcessingInstruction;
exports.Text = dom.Text;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds investigationInformation is missing and needs to be researched

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions