Skip to content

[Request] Expose TypeScript types. #2945

Closed
@gluons

Description

@gluons

Is your request related to a specific problem you're having?
Sometime I want to use some type from Highlight.js internal types. e.g. Language, LanguageFn.
But I can't use it now.

The solution you'd prefer / feature you'd like to see added...
Expose all internal TypeScript types from highlight.js.
So I can use it for more typing.

Any alternative solutions you considered...
No.

Additional context...
Types should be able to import like this.

import { LanguageFn, Language } from 'highlight.js';

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn enhancement or new featuregood first issueShould be easier for first time contributorshelp welcomeCould use help from communitypackage/buildIssues relating to npm or packaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions