You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/test.ts:5:51 - error TS2769: No overload matches this call.
Overload 1 of 3, '(plugin: Plugin<[], Node, Node>, ...settings: [boolean] | []): Processor<any, Node<Data>, Node<Data>, void>', gave the following error.
Argument of type 'Plugin<[(Options | null | undefined)?], Root, string>' is not assignable to parameter of type 'Plugin<[], Node, Node>'.
Overload 2 of 3, '(tuple: [Plugin<any[], Node<Data>, Node<Data>>, ...any[]] | [Plugin<any[], Node<Data>, Node<Data>>, boolean]): Processor<...>', gave the following error.
Argument of type 'Plugin<[(Options | null | undefined)?], Root, string>' is not assignable to parameter of type '[Plugin<any[], Node<Data>, Node<Data>>, ...any[]] | [Plugin<any[], Node<Data>, Node<Data>>, boolean]'.
Overload 3 of 3, '(presetOrList: Preset | PluggableList): Processor<any, Node<Data>, Node<Data>, void>', gave the following error.
Argument of type 'Plugin<[(Options | null | undefined)?], Root, string>' is not assignable to parameter of type 'Preset | PluggableList'.
5 export const pipeline = reorg().use(toRehype).use(toHtmlString);
~~~~~~~~~~~~
Since the example above works fine under non-typed situations (ESBuild, vanilla JS, etc.), a workaround is possible with // @ts-expect-error directive before the problematic line. I do believe that this is not ideal, though...
The text was updated successfully, but these errors were encountered:
With TypeScript 5.2.2, the simple example below fails to compile due to mismatched type signature.
The error message reads:
Since the example above works fine under non-typed situations (ESBuild, vanilla JS, etc.), a workaround is possible with
// @ts-expect-error
directive before the problematic line. I do believe that this is not ideal, though...The text was updated successfully, but these errors were encountered: