Bilingual JSDoc
Workflow
- •Confirm which package the function belongs to (utils/web-utils/node-utils/canvas-utils/ai-utils) and open the target module file.
- •Write JSDoc in the required format:
- •Chinese description, then English description
- •
@paramlines with Chinese and English descriptions - •
@returnsline with return description - •At least two
@exampleblocks (common case + edge case, add a third when helpful)
- •Ensure types in JSDoc match the TypeScript signature.
- •Keep wording concise and consistent with existing style.