kjelsrud.dev/node_modules/rehype-parse/index.d.ts

8 lines
366 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
// This wrapper exists because JS in TS cant export a `@type` of a function.
import type {Options, ErrorCode, ErrorSeverity} from './lib/index.js'
import type {Root} from 'hast'
import type {Plugin} from 'unified'
declare const rehypeParse: Plugin<[Options?] | Array<void>, string, Root>
export default rehypeParse
export type {Options, ErrorCode, ErrorSeverity}