Skip to content

Commit

Permalink
Add type declaration (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Molares authored Oct 12, 2020
1 parent b11999b commit c8178ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module 'markdown-it-front-matter' {
import MarkdownIt from 'markdown-it/lib'
export type FrontMatterPluginOptions = (rawMeta: string) => void
const markdownItFrontMatter: MarkdownIt.PluginWithOptions<FrontMatterPluginOptions>
export = markdownItFrontMatter
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"url": "git://github.com/ParkSB/markdown-it-front-matter.git"
},
"main": "index.js",
"types": "index.d.ts",
"keywords": [
"markdown-it-plugin",
"markdown-it",
Expand All @@ -23,6 +24,7 @@
"license": "MIT",
"devDependencies": {
"markdown-it": "^10.0.0",
"@types/markdown-it": "^10.0.0",
"mocha": "^7.0.1"
},
"scripts": {
Expand Down

0 comments on commit c8178ed

Please sign in to comment.