markdown-js
markdown-js copied to clipboard
Create typings, or a workaround to import to typescript?
Does anyone have this working with typescript, or have typings with it? I'd love if this node package came with the .d.ts typings file.
If you're just using the toHTML method, you'll only need this:
declare module "markdown" {
var markdown: {
toHTML(markdown: string): string;
}
}
Same issue, use in TypeScript, it will tips: Try npm install @types/markdown if it exists or add a new declaration (.d.ts) file containing declare module 'markdown'; and there is no @types/markdown.