Skip to content

Mark Highligher.codeToHtml as non-nullable #101

@Gerrit0

Description

@Gerrit0

Highlither.codeToHtml is marked as a nullable property, however, as far as I can tell in practice, it will never be null.

https://github.com/shikijs/shiki/blob/master/packages/shiki/src/highlighter.ts#L91

Am I missing something, or can this be marked as non-nullable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions