Skip to content

Difference in spelling of isHTMLMimeType between implementation and type definition #712

Description

@marvinruder

Describe the bug
The implementation of the method verifying that a MIME type is text/html is named isHTMLMimeType, whereas its type definition is named isHtmlMimeType. This leads to typechecking errors and IDEs autocompleting the name of a non-existing method.

To Reproduce
Compare

function isHtmlMimeType(mimeType: string): mimeType is MIME_TYPE.HTML;

against

exports.isHTMLMimeType = conventions.isHTMLMimeType;

and

function isHTMLMimeType(mimeType) {

Expected behavior
Type definition and implementation should match.

Runtime & Version:
xmldom version: 0.9.0
runtime version: N/A
other related software and version: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp-wantedExternal contributions welcometypesAnything regarding Typescript

    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