pomdtr/ask_ai

References

Referenced 1 time

Add JSDoc comment to any val

This val is supposed to be used with the val.town chrome extension.

Add this field to your config to use it:

Create val export default [ { title: "Add JSDoc comments", val: "pomdtr/add_jsdoc_action", patterns: ["https://www.val.town/v/:author/:name"], }, // ... ]
Readme
1
2
3
4
5
6
7
8
import { askAI } from "https://esm.town/v/pomdtr/ask_ai";
import { BrowserContext } from "https://esm.town/v/pomdtr/browser";
export default async function(ctx: BrowserContext) {
const { author, name } = ctx.params;
await askAI(`Add jsdoc comments for each exported function of the val @${author}/${name}`);
}
1
Next