Skip to main content

JSDoc/TSDoc Generator

v1.1.3

Generate JSDoc and TSDoc comment blocks from function signatures.

Generates JSDoc and TSDoc comment blocks from function signatures — parses parameter names, types, and return type to produce formatted @param and @returns documentation.

How to use
  • Paste a function signature or full function body into the input.
  • The tool infers parameter types from TypeScript annotations if present.
  • Copy the generated comment block and place it above the function in your code.
Generated JSDoc
/**
 * Calculate the total price including tax
 * @param {Item[]} items - description
 * @param {number} taxRate - description
 * @returns {number} description
 */
function calculateTotal(items: Item[], taxRate: number): number {
  // implementation
}