Skip to content

Commit

Permalink
Improve typings (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu authored Oct 12, 2020
1 parent d3cddd1 commit 30567e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
declare module 'markdown-it-front-matter' {
import MarkdownIt from 'markdown-it/lib'
export type FrontMatterPluginOptions = (rawMeta: string) => void
const markdownItFrontMatter: MarkdownIt.PluginWithOptions<FrontMatterPluginOptions>

namespace markdownItFrontMatter {
type FrontMatterPluginOptions = (rawMeta: string) => void
}
const markdownItFrontMatter: MarkdownIt.PluginWithOptions<markdownItFrontMatter.FrontMatterPluginOptions>
export = markdownItFrontMatter
}

0 comments on commit 30567e5

Please sign in to comment.