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

10 lines
416 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} from './lib/index.js'
import type {Root} from 'hast'
import type {Plugin} from 'unified'
// Note: defining all nodes here, such as with `Root | Element | ...` seems
// to trip TS up.
declare const rehypeStringify: Plugin<[Options?] | Array<void>, Root, string>
export default rehypeStringify
export type {Options}