Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jan 22, 2024
1 parent 77cd1dc commit 02447ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mdsvex/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export type Layout = Record<string, LayoutMeta>;

export type Highlighter = (
code: string,
lang: string | undefined,
metastring: string | undefined
lang: string | null | undefined,
metastring: string | null | undefined
) => string | Promise<string>;
interface HighlightOptions {
/**
Expand Down

0 comments on commit 02447ed

Please sign in to comment.