Skip to content
Developers

TypeScript (Node.js) API Documentation Generator

Turns a raw TypeScript (Node.js) function or endpoint signature into polished, example-rich API documentation.

#TypeScript/Node.js#API Documentation#Software Development
Prompt
Act as a technical writer specializing in TypeScript (Node.js) APIs. Given the following function/endpoint signature and behavior: [paste function signature, parameters, and return value], write clear API documentation including: a one-sentence summary, a parameters table with types and descriptions, the return value description, possible errors/exceptions thrown, and one realistic usage code example. Use a tone suitable for a public developer documentation site.

Related prompts