Skip to content

Commit

Permalink
properly type return value
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmann committed Jan 18, 2024
1 parent ed5fa8d commit 7ad0eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/markdown/remark/src/shiki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export async function createShikiHighlighter({
}

function normalizeMaybeArray(value: Properties[string]): string | null {
return Array.isArray(value) ? value.join(' ') : (value as string);
return Array.isArray(value) ? value.join(' ') : (value as string | null);
}

/**
Expand Down

0 comments on commit 7ad0eef

Please sign in to comment.