Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
3
stevekrouse avatar

Probably don't need to explain what SQLite is here. I wonder if JSDoc has markdown rendering because then you could link to sqlite

Can drop Turso reference in the JSDoc string

I wonder if there's a proper JSDoc format for commenting TypeScript types.

Would be super neat if when you went to use sqlite.execute that you could inspect the type of InStatement without leaving your code editor.

Kinda on a slightly different topic. How about we export execute and batch? I think the only reason we didn't was because we couldn't at the time

andreterron avatar

I wonder if there's a proper JSDoc format for commenting TypeScript types.

I don't understand what you mean by this

Kinda on a slightly different topic. How about we export execute and batch?

I think the goal was to keep it consistent with libsql's API

stevekrouse avatar

Great! Ready to merge. Optional improvement ideas:

  1. Link to our docs in the jsdoc string
  2. Would be neat if we showed folks examples of how to call it, both with a simple string and with args
Updated: April 3, 2024