Data

Defined in: node_modules/@types/mdast/index.d.ts:130

Info associated with mdast nodes by the ecosystem.

This space is guaranteed to never be specified by unist or mdast. But you can use it in utilities and plugins to store data.

This type can be augmented to register custom data. For example:

declare module 'mdast' {
  interface Data {
    // `someNode.data.myId` is typed as `number | undefined`
    myId?: number | undefined
  }
}

Extends

Extended by