Skip to content

motss/rehype-prism-plus-typing-issue

Repository files navigation

rehype-prims-plus typing issue

Problem

This is the error message when compiling TypeScript file that imports the module.

error TS2315: Type 'Visitor' is not generic.

9 export type Visitor = import('unist-util-visit').Visitor<Node>;

For more details, please see this rehype-prism-plus#23.

How to run

  1. Run npm i to install the dependencies
  2. Run npm run build and see the error message

About

Missing type fails TypeScript compilation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published