Skip to content

Generate editor declarations without the TypeScript compiler - #741

Merged
ctate merged 1 commit into
mainfrom
ctate/generate-editor-declarations-b1789e
Oct 18, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/generate-editor-declarations-b1789e

Conversation

@ctate

@ctate ctate commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator
  • The SQLite SDK declarations (.native/cache/sqlite/core.d.ts) and the services editor client declarations (node_modules/@native-sdk/services/index.d.ts) are now written directly by the generators that already produce their sources, instead of by running a TypeScript compiler program over the generated code. sqlite_cli.ts no longer loads the TypeScript compiler, and native check no longer compiles a program just to emit editor typings.
  • Output is byte-identical to the previous compiler emit. New tests compare both generators against declaration emit across every SQLite column class (nullable and not), parameter shapes, exec/rows/live mixes and the no-queries case, and across service records, enums, unions, optionals, nested slices and streaming operations. A missing insertion anchor in the SDK declarations fails loudly instead of dropping generated declarations.
  • The SQLite declarations now build on the shipped sdk/core.d.ts, so the existing freshness test for the shipped SDK declarations is added to the zig build Node test step alongside the new tests.

- Emit the SQLite SDK and services client declaration files directly from their generators, byte-identical to the previous compiler output.
- Hold both generators to declaration emit across SQLite column classes and service shapes, and keep the shipped SDK declarations fresh in the test suite.
@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
native-sdk Ready Ready Preview, v0 Oct 18, 2026 9:44pm UTC
native-sdk-schema Ready Ready Preview, v0 Oct 18, 2026 9:44pm UTC

@ctate
ctate merged commit 202b311 into main Oct 18, 2026
64 of 65 checks passed

This branch was successfully deployed

2 active deployments
Preview – native-sdk — bdeeba51 Deployed Oct 18, 2026 by vercel[bot]
Preview – native-sdk-schema — bdeeba51 Deployed Oct 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant