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
case.ts:12:29 - error TS2345: Argument of type '{ type: string; children: ({ type: string; children: { type: string; value: string; }[]; } | { type: string; children?: undefined; })[]; }' is not assignable to parameter of type 'Nodes'.
Type '{ type: string; children: ({ type: string; children: { type: string; value: string; }[]; } | { type: string; children?: undefined; })[]; }' is not assignable to type 'Root'.
Types of property 'type' are incompatible.
Type 'string' is not assignable to type '"root"'.
12 const markdown = toMarkdown(tree);
~~~~
Found 1 error in case.ts:12
Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed.
See our support docs for how and where to ask questions.
Initial checklist
Affected package
mdast-util-to-markdown
Steps to reproduce
With version 2.1.2:
Run with
tsc case.ts
Actual behavior
Expected behavior
Output of:
Runtime
[email protected], Typescript 5.8.3
Package manager
[email protected]
Operating system
macOS 15.4.1
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: