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
The shape of the node object passed to customizeTOC doesn't match the Node interface as specified by the latest version of unified. This is what the plugin is passing:
Everything in src/types.ts could probably be replaced with @types/hast.
And the guard in src/type-guards.ts could be simplified after @types/hast is in use, there are a few ways to narrow nodes https://unifiedjs.com/learn/recipe/narrow-node-typescript/
The shape of the
node
object passed tocustomizeTOC
doesn't match theNode
interface as specified by the latest version ofunified
. This is what the plugin is passing:This is what unified expects:
As a result, we've no way to export the TOC using that method to stringify it, store the AST separately, etc.
The text was updated successfully, but these errors were encountered: