Skip to content

Commit

Permalink
Fix typescript type
Browse files Browse the repository at this point in the history
  • Loading branch information
Phryxia committed Sep 18, 2022
1 parent 8d0dc46 commit 510a9bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import type { ShowdownExtension } from "showdown";

declare function showdownHighlight({ pre: Boolean, auto_detection: Boolean }): ShowdownExtension[];
declare type ShowdownHighlightOptions = {
pre: boolean
auto_detection: boolean
}

declare function showdownHighlight(options?: Partial<ShowdownHighlightOptions>): ShowdownExtension[];
export = showdownHighlight;

0 comments on commit 510a9bc

Please sign in to comment.