From f4731f82884392b1f15a6d9581f1e6fbab8147c3 Mon Sep 17 00:00:00 2001 From: Richard Lee <14349+dlackty@users.noreply.github.com> Date: Mon, 28 Aug 2023 19:35:57 +0800 Subject: [PATCH] Add typings --- index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..bff398b --- /dev/null +++ b/index.d.ts @@ -0,0 +1,13 @@ +declare module "remove-markdown" { + export function removeMd(md: string, options?: { + stripListLeaders?: boolean; + listUnicodeChar?: string; + gfm?: boolean; + useImgAltText: boolean; + abbr?: boolean; + replaceLinksWithURL?: boolean; + htmlTagsToSkip?: string[]; + }): string; + + export = removeMd; +} \ No newline at end of file