deno
0e13f2c4 - chore: add tests for JSDoc @event, @fires, @emits, @listens (#34688)

Commit
39 days ago
chore: add tests for JSDoc @event, @fires, @emits, @listens (#34688) ## Summary Adds support for the JSDoc event-documentation tags so that classes which fire events (for example, `EventTarget` subclasses) can be documented with `deno doc` and on JSR: - `@event <name>` declares an event a class can emit - `@fires <name>` (alias `@emits <name>`) documents which events a method or function fires - `@listens <name>` documents which events a symbol listens for The new tags are surfaced both in the terminal output of `deno doc` and in `deno doc --json` under the `event`, `fires`, and `listens` tag kinds. ## Implementation The JSDoc tag parsing and serialization support shipped upstream in `deno_doc` 0.200.0 via denoland/deno_doc#800. This PR bumps Deno to `deno_doc` 0.200.0 and `deno_graph` 0.109.0, updates explicit `BuildOptions` initializers for the new graph option, and adds Deno-side spec coverage. Upstream: denoland/deno_doc#800 ## Test plan - [x] `cargo build -p deno` - [x] `./x test-spec jsdoc_event` Closes #26697 Closes denoland/divybot#402 --------- Co-authored-by: divybot <divybot@users.noreply.github.com> Co-authored-by: Divy Srivastava <me@littledivy.com>
Author
Parents
Loading