Skip to content

Commit b47f2e4

Browse files
authored
Merge pull request #114 from leafac/remove-null
Mark Highligher.codeToHtml as non-nullable
2 parents 62ed6d3 + 2a7a389 commit b47f2e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shiki/src/highlighter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export interface Highlighter {
124124
lang: StringLiteralUnion<Lang>,
125125
options?: ThemedTokenizerOptions
126126
): IThemedToken[][]
127-
codeToHtml?(code: string, lang: StringLiteralUnion<Lang>): string
127+
codeToHtml(code: string, lang: StringLiteralUnion<Lang>): string
128128

129129
// codeToRawHtml?(code: string): string
130130
// getRawCSS?(): string

0 commit comments

Comments
 (0)