Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nethriis opened this issue Feb 6, 2024 · 1 comment
Open

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

nethriis opened this issue Feb 6, 2024 · 1 comment

Comments

@nethriis
Copy link

nethriis commented Feb 6, 2024

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
Copy link

ahri commented Apr 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants