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

Create typings, or a workaround to import to typescript? #270

Open
dessalines opened this issue Apr 21, 2016 · 2 comments
Open

Create typings, or a workaround to import to typescript? #270

dessalines opened this issue Apr 21, 2016 · 2 comments

Comments

@dessalines
Copy link

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.

@timfish
Copy link

timfish commented Nov 25, 2016

If you're just using the toHTML method, you'll only need this:

declare module "markdown" {
  var markdown: {
    toHTML(markdown: string): string;
  }
}

@zedfight
Copy link

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.

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

3 participants