@andrewshawcare, I've listed you as a co-author for this commit since the content is from your recommended patch in https://github.com/mermaid-js/mermaid-cli/issues/633! Let me know if you're not comfortable with this, or if you'd prefer to make your own PR for this contribution!
:bookmark_tabs: Summary
Currently, the TypeScript types for this module only support the
node10
TypeScript module resolution mode.Now,
node10
,node16
(ESM only), andbundler
all work, according to https://arethetypeswrong.github.io/, see https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolutionResolves https://github.com/mermaid-js/mermaid-cli/issues/628 Resolves https://github.com/mermaid-js/mermaid-cli/issues/633
:straight_ruler: Design Decisions
@andrewshawcare, I've listed you as a co-author for this commit since the content is from your recommended patch in https://github.com/mermaid-js/mermaid-cli/issues/633! Let me know if you're not comfortable with this, or if you'd prefer to make your own PR for this contribution!
:clipboard: Tasks
Make sure you
[x] :book: have read the contribution guidelines
[ ] :computer: have added unit/e2e tests (if appropriate)
yarn pack
and checking the contents with https://arethetypeswrong.github.io/:[x] :bookmark: targeted
master
branch