From c3cdc42fc3a40305f3afbe368529ee292338fefe Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 30 Mar 2023 16:09:17 +0200 Subject: [PATCH] Add export of `Directive` type --- dev/index.js | 1 + readme.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/index.js b/dev/index.js index 5999f02..e540120 100644 --- a/dev/index.js +++ b/dev/index.js @@ -1,4 +1,5 @@ /** + * @typedef {import('./lib/html.js').Directive} Directive * @typedef {import('./lib/html.js').Handle} Handle * @typedef {import('./lib/html.js').HtmlOptions} HtmlOptions */ diff --git a/readme.md b/readme.md index d990a0b..e8596d9 100644 --- a/readme.md +++ b/readme.md @@ -292,8 +292,8 @@ this implementation mimics CommonMark as closely as possible: ## Types This package is fully typed with [TypeScript][]. -It exports the additional types [`Handle`][api-handle] and -[`HtmlOptions`][api-html-options]. +It exports the additional types [`Directive`][api-directive-type], +[`Handle`][api-handle], and [`HtmlOptions`][api-html-options]. ## Compatibility