From 30567e57c3f743ecf1a000a2db5ffa1152aeb717 Mon Sep 17 00:00:00 2001 From: Opportunity Date: Mon, 12 Oct 2020 19:11:07 +0800 Subject: [PATCH] Improve typings (#13) --- index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index a90b761..16b2d1d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 + + namespace markdownItFrontMatter { + type FrontMatterPluginOptions = (rawMeta: string) => void + } + const markdownItFrontMatter: MarkdownIt.PluginWithOptions export = markdownItFrontMatter }