-
-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
👯 no/duplicateDéjà vuDéjà vu
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
2.1.0
Link to runnable example
https://codesandbox.io/s/wizardly-jepsen-1jeeyl
Steps to reproduce
Expected behavior
The plugins work without errors.
Actual behavior
You get a bunch of weird errors about missing members.
remarkGfm gives the following error;
TS2322: Type '(options?: void | Options) => void | Transformer<Root, Root>' is not assignable to type 'Pluggable<any[], Settings>'. Type '(options?: void | Options) => void | Transformer<Root, Root>' is not assignable to type 'Plugin<any[], Settings>'. Type 'void | Transformer<Root, Root>' is not assignable to type 'void | Transformer'. Type 'Transformer<Root, Root>' is not assignable to type 'void | Transformer'. Type 'Transformer<Root, Root>' is not assignable to type 'Transformer'. Types of parameters 'file' and 'file' are incompatible. Type 'VFile' is missing the following properties from type 'VFile': value, stored, result, map
remarkBreaks gives;
TS2322: Type '() => void | Transformer<Root, Root>' is not assignable to type 'Pluggable<any[], Settings>'. Type '() => void | Transformer<Root, Root>' is not assignable to type 'Plugin<any[], Settings>'. Type 'void | Transformer<Root, Root>' is not assignable to type 'void | Transformer'.
remarkParse gives;
S2322: Type 'Plugin<[Options?] | void[], string, Root>' is not assignable to type 'Pluggable<any[], Settings>'. Type 'Plugin<[Options?] | void[], string, Root>' is not assignable to type 'Plugin<any[], Settings>'. The 'this' types of each signature are incompatible. Property 'attachers' is missing in type 'Processor<Settings>' but required in type 'Processor<Root, Root, void, void>'.
Runtime
Node v16
Package manager
npm 8
OS
Windows
Build and bundle tools
Webpack, Next.js
karlhorky
Metadata
Metadata
Assignees
Labels
👯 no/duplicateDéjà vuDéjà vu