rehype-pretty / rehype-pretty-code

Beautiful code blocks for Markdown or MDX.
https://rehype-pretty.pages.dev
MIT License
1.01k stars 63 forks source link

Types are no lonnger exported from the NPM package #160

Closed mwskwong closed 8 months ago

mwskwong commented 8 months ago

After installing the latest version, observe the content of dist/index.d.ts. The only export is rehypePrettyCode() all the types are still present but are no longer exported.

mburumaxwell commented 8 months ago

Seen the same behaviour in version 0.12.4. Relates to the move to tsup/esbuild. Adding export * from './types to src/index.ts should solve this. @atomiks are you accepting PRs for this?

atomiks commented 8 months ago

Sorry! Yes @mburumaxwell feel free