block
and inline
are declared to TypeScript as exported, but are never exported
#3426
Labels
category: types
L2 - annoying
Similar to L1 - broken but there is a known workaround available for the issue
Marked version: 14.0.0
Describe the bug
marked.d.ts
marks bothblock
andinline
asexport declare const ...
, implying they are available for import. However, neither symbol is actually available (in neither CJS, ESM, or UMD form).Note
marked.d.ts
declares both as exported:But
marked.esm.js
(or.cjs
&.umd.js
files) do not in fact export it:To Reproduce
Simply install
[email protected]
, and write the following (TypeScript!) file:Expected behavior
The type declarations should match the actual exports --- either
marked.d.ts
should not declare those types asexport
, or (ideally)block
&inline
should actually be exported.The text was updated successfully, but these errors were encountered: