remarkjs / remark-rehype

plugin that turns markdown into HTML to support rehype
https://remark.js.org
MIT License
258 stars 18 forks source link

Typings for typescript projects #10

Closed andrezero closed 5 years ago

andrezero commented 5 years ago

Just starting using unified, remark & rehype in the context of a static site generator written in typescript and noticed this package is missing typings.

I just patched it with the following local src/node_modules/remark-rehype/index.d.ts, which is enough for my project but would be great to have complete typings for this plugin.

// TypeScript Version: 3.0

declare module 'remark-rehype' {
  import { Plugin } from 'unified';

  const remark2rehype: Plugin;

  export default remark2rehype;
}
ChristianMurphy commented 5 years ago

@andrezero Typings would be welcome, would you be interested in contributing them? If you have questions or want to discuss typings in general for Unified there is a channel on Spectrum for type definitions https://spectrum.chat/unified/type-definitions feel free to reach out!

wooorm commented 5 years ago

I’ll close this here, so discussion can happen in one place (spectrum)