Typings for typescript projects
andrezero opened this issue · comments
Andre Torgal commented
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;
}
Christian Murphy commented
@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!