Commit 76ebb6a
docs(api): record the os:check decision for client-sdk.mdx, and fence its JSX as tsx (#12045)
The page has 13 TypeScript fences and 0 os:check markers. Marking them was
measured rather than assumed: all 13 marked at once produce 128 diagnostics and
not one is a doc-vs-SDK divergence.
Two structural reasons, neither fixable on this page:
- content/docs/** belongs to check:skill-examples' "skills + docs" surface,
whose paths map derives from @objectstack/spec alone, and spec does not
depend on @objectstack/client. Every fence importing the SDK reds TS2307.
- The remaining fences are deliberate continuation fragments sharing the
Quick Start's `client`, so they red TS2304.
Making either class compile would mean hand-declaring the SDK's own types or
injecting casts into prose whose subject is the real API.
Also retags the React Hooks block tsx (it is JSX). The gate writes each block
out with its fence's extension, so as `typescript` a marker on it produced only
TS1xxx syntax errors -- and tsc never runs the semantic pass after those, which
suppressed type-checking for every marked block across skills/ and content/docs/
(measured: 128 semantic diagnostics collapse to 0). check:doc-authoring accepts
tsx, so the block stays visible to it.
Part of #11942
Claude-Session: https://claude.ai/code/session_01UjM2ia8Av1v5NqfqQEQmC6
Co-authored-by: Claude <noreply@anthropic.com>1 parent f658793 commit 76ebb6a
1 file changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
28 | 63 | | |
29 | 64 | | |
30 | 65 | | |
| |||
636 | 671 | | |
637 | 672 | | |
638 | 673 | | |
639 | | - | |
| 674 | + | |
640 | 675 | | |
641 | 676 | | |
642 | 677 | | |
| |||
0 commit comments