Skip to content

docs(languages): document Reylo SQL import into TypeScript - #122

Merged
PerfectPan merged 4 commits into
mainfrom
docs/reylo-sql-import-typescript
Oct 25, 2026
Merged

PerfectPan merged 4 commits into
mainfrom
docs/reylo-sql-import-typescript

Conversation

@PerfectPan

Copy link
Copy Markdown
Owner

Summary

Document how TypeScript 7.1 content mappers let the type checker assign module types to non-.ts files such as .sql, and capture what Reylo builds on top of that mechanism.

  • New synthesis page: TypeScript's content-mapper plugin path (tsconfig / package registration, how the compiler hands files to the mapper, type generation and caching), then a short list of Reylo highlights — import .sql directly, infer types from a live database via PREPARE (no hand-written types or codegen), and separate type-checking from runtime (transform / register / Vite).
  • New source note with the verification record (TS 7.1 beta post, typescript-go PR #4712, Reylo site and repo paths checked).
  • Link the synthesis from index.md and the TypeScript topic page.

Affected pages

  • wiki/syntheses/languages/reylo-sql-import-typescript.md (new)
  • raw/sources/reylo-typescript-content-mapper.md (new)
  • wiki/topics/languages/typescript.md (related-synthesis link, updated bumped)
  • index.md (entry under languages syntheses)

Sources

Validation

  • bin/wiki check on the new synthesis: 0 errors, 0 warnings. Full-tree bin/wiki check: 0 errors (existing description warnings only).
  • bin/wiki check-jargon --base origin/main: 0 issues on changed lines; pre-commit jargon and frontmatter hooks passed.
  • Branch created from latest origin/main (49402f1); unrelated wiki/topics/systems/linux.md working-tree edit was stashed and not included.

Record how TypeScript 7.1 content mappers type-check .sql modules and
list Reylo's highlights: live-DB PREPARE inference and runtime separation.
…gram

Rewrite the synthesis in plain Chinese, keep the two-chapter layout, and add
the import-to-runtime flowchart alongside the TypeScript mapper overview.
…rmaid

Put the TypeScript 7.1 content-mapper explanation on the TypeScript topic
page; keep Reylo as the SQL/runtime synthesis with a short pointer.
Add Morandi-style Mermaid themeVariables, subgraph fills, and path strokes
so type vs runtime vs shared analysis read clearly in Obsidian.
统一改为「开发库」/「可连的开发库」,删除图配色说明文字。
@PerfectPan
PerfectPan merged commit 9967d89 into main Oct 25, 2026
1 check passed
@PerfectPan
PerfectPan deleted the docs/reylo-sql-import-typescript branch November 9, 2026 03:52
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