remarkjs / remark-rehype

plugin that turns markdown into HTML to support rehype

Home Page:https://remark.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typings for typescript projects

andrezero opened this issue · comments

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

@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!

commented

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