Add export of Directive type

This commit is contained in:
Titus Wormer 2023-03-30 16:09:17 +02:00
parent 27aed31e00
commit c3cdc42fc3
No known key found for this signature in database
GPG key ID: E6E581152ED04E2E
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
/** /**
* @typedef {import('./lib/html.js').Directive} Directive
* @typedef {import('./lib/html.js').Handle} Handle * @typedef {import('./lib/html.js').Handle} Handle
* @typedef {import('./lib/html.js').HtmlOptions} HtmlOptions * @typedef {import('./lib/html.js').HtmlOptions} HtmlOptions
*/ */

View file

@ -292,8 +292,8 @@ this implementation mimics CommonMark as closely as possible:
## Types ## Types
This package is fully typed with [TypeScript][]. This package is fully typed with [TypeScript][].
It exports the additional types [`Handle`][api-handle] and It exports the additional types [`Directive`][api-directive-type],
[`HtmlOptions`][api-html-options]. [`Handle`][api-handle], and [`HtmlOptions`][api-html-options].
## Compatibility ## Compatibility