markdown-it / markdown-it-emoji

Emoji syntax plugin for markdown-it markdown parser
https://markdown-it.github.io/
MIT License
729 stars 166 forks source link

@types/markdown-it-emoji not match with markdown-it-emoji #51

Open nethriis opened 9 months ago

nethriis commented 9 months ago

I have the error who says me to install @types/markdown-it-emoji because I use typescipt but the @types/markdown-it-emoji doesn't export full.

ahri commented 7 months ago

@nethriis I had the same problem, I followed the instructions at https://medium.com/@steveruiz/using-a-javascript-library-without-type-declarations-in-a-typescript-project-3643490015f3 and created a file in the root of my project called markdown-it-emoji.d.ts with the contents:

declare module "markdown-it-emoji" {
    import MarkdownIt from "markdown-it";
    export const full: MarkdownIt.PluginSimple;
}