Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/motss/rehype-prism-plus-typing-issue
- Owner: motss
- Created: 2022-01-08T13:32:38.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-08T13:36:46.000Z (about 3 years ago)
- Last Synced: 2024-11-07T08:50:02.056Z (2 months ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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