Skip to content

Commit 072d7bf

Browse files
MajorTalclaude
andcommitted
docs: add run402-functions npm install instructions to SKILL.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d8f550c commit 072d7bf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ Deploy a serverless function (Node 22) to a project. Functions are invoked via H
208208
import { db, email, getUser } from '@run402/functions';
209209
```
210210

211+
**Local development with TypeScript types**: `npm install run402-functions` — gives full autocomplete for `db.from()`, `getUser()`, `email.send()`, `ai.translate()`. Add `"@run402/functions": "npm:run402-functions@^1.0.0"` to package.json to match the import path.
212+
211213
**db.sql(query, params?)** — raw SQL, returns `{ status, schema, rows, rowCount }`.
212214
- SELECT: `rows` = matching rows, `rowCount` = row count
213215
- INSERT/UPDATE/DELETE: `rows` = `[]`, `rowCount` = affected rows

0 commit comments

Comments
 (0)