Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/motss/rehype-prism-plus-typing-issue

Missing type fails TypeScript compilation
https://github.com/motss/rehype-prism-plus-typing-issue

Last synced: about 1 month ago
JSON representation

Missing type fails TypeScript compilation

Awesome Lists containing this project

README

        

# rehype-prims-plus typing issue

## Problem

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

```sh
error TS2315: Type 'Visitor' is not generic.

9 export type Visitor = import('unist-util-visit').Visitor;
```

For more details, please see this [rehype-prism-plus#23](https://github.com/timlrx/rehype-prism-plus/issues/23).

## How to run

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