CompileResultMap

Defined in: node_modules/unified/index.d.ts:50

Interface of known results from compilers.

Normally, compilers result in text (Value of vfile). When you compile to something else, such as a React node (as in, rehype-react), you can augment this interface to include that type.

import type {ReactNode} from 'somewhere'

declare module 'unified' {
  interface CompileResultMap {
    // Register a new result (value is used, key should match it).
    ReactNode: ReactNode
  }
}

export {} // You may not need this, but it makes sure the file is a module.

Use CompileResults to access the values.

Properties

string

string: string

Defined in: node_modules/unified/index.d.ts:53


Uint8Array

Uint8Array: Uint8Array

Defined in: node_modules/unified/index.d.ts:52