You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're reporting a bug, please include input code, output documentation,
a description of what you expected to happen, and what happened instead.
What version of documentation.js are you using?: 12.0.3
How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI
I've attached a repo that reproduces what I'm seeing. I have a function written in TypeScript that includes an @example call in the JSDoc comment. But the only way I can get it to successfully parse (without throwing an error) is if I use import ... from ..., not require(). I don't believe this is an issue when parsing JavaScript. Maybe the TypeScript parser does not understand require, but I'm wanting to document how to use my library in Node.js (so with require()), not TypeScript-parsed JavaScript. 😬
If you're reporting a bug, please include input code, output documentation,
a description of what you expected to happen, and what happened instead.
I've attached a repo that reproduces what I'm seeing. I have a function written in TypeScript that includes an
@example
call in the JSDoc comment. But the only way I can get it to successfully parse (without throwing an error) is if I useimport ... from ...
, notrequire()
. I don't believe this is an issue when parsing JavaScript. Maybe the TypeScript parser does not understandrequire
, but I'm wanting to document how to use my library in Node.js (so withrequire()
), not TypeScript-parsed JavaScript. 😬The example repo: https://github.com/rdmurphy/documentation-typescript-require
Thank you!
The text was updated successfully, but these errors were encountered: