DataMap

This map registers the type of the data key of a VFile.

This type can be augmented to register custom data types.

Example

declare module 'vfile' {
  interface DataMap {
    // `file.data.name` is typed as `string`
    name: string
  }
}

Properties

[emptyObjectSymbol]?

optional [emptyObjectSymbol]: undefined

Defined in

node_modules/vfile/index.d.ts:79