Giter VIP home page Giter VIP logo

Comments (4)

Gerrit0 avatar Gerrit0 commented on September 13, 2024 1

It sounds like what you want is provided by TypeDoc's @remarks tag.

The @summary tag isn't a great fit either as typedoc renders the non-tagged content first.

from typedoc.

Gerrit0 avatar Gerrit0 commented on September 13, 2024

If there's both a description at the beginning of a JSDoc comment and a description provided with the @description tag, the description specified with the@description will override the description at the beginning of the comment. - JSDoc

This behavior is not respected by typedoc, and frankly it sounds like a terrible idea to me, which is why @description is not included in the list of default tags.

As your IDE obviously isn't following this behavior either, my question is - why is this tag useful over just including a paragraph break in the comment summary section?

/**
 * Some docs
 *
 * More docs that were previously under `@description
 */

from typedoc.

Bugs5382 avatar Bugs5382 commented on September 13, 2024

@Gerrit0 I see the โ€œtitleโ€ of the function/code as one thing and a more description about what it does in its own section. While I can see this as a burden to add, JSDOC shows https://jsdoc.app/tags-description being a type. Though it notes that the tag overrides the rest of the comment.

The https://jsdoc.app/tags-summary tag seems to be the โ€œshortโ€ description and/or summary of what the long stuff. Maybe switch this out for @summary ,,,,

from typedoc.

Bugs5382 avatar Bugs5382 commented on September 13, 2024

@Gerrit0 Remarks it is! ๐Ÿ‘

from typedoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.