markdown-it-emoji icon indicating copy to clipboard operation
markdown-it-emoji copied to clipboard

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

Open davidabou opened this issue 2 years ago • 1 comments

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.

davidabou avatar Feb 06 '24 17:02 davidabou

@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;
}

ahri avatar Apr 29 '24 06:04 ahri