utils
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v50View latest version
Instructions: After EVERY checkbox, test that it works by visiting the HTTP endpoint URL (look it up via Val Town MCP). Mark ✅ by editing this file in Val Town only after confirming it works.
- Fix the
readFiletype to take two strings and return a Promise of string or undefined. - Audit all the type signatures of all the functions and replace
anywith better types - Add ts syntax highlighting for the function signature and the example.
Strip the
tsfrom the examples - Add precise type information for all inputs and outputs. Users should know exactly every field of every input and every output type.
- Linking to ranges in val town is: #L60-74 (now it's bugging at #L60-L74, we need to remove second L)
- Linkify all the function names with hash-based id links. They should be clickable and link to themselves.
- The left side panel should go away when the screen is too narrow
- The note about file-system access belongs both at the top of the docs and also briefly mentioned in the readfile and listfile functions too.
- Rewrite _docs.ts to use Hono JSX (no html strings) and twind for css.
- (For later) Augment the docs generator with test information.
