Add (param :as type) annotations to defcomp params across all services and templates
Annotates ~500 defcomp params across 62 files: market (5), blog (7), cart (5), events (3), federation (4), account (3), orders (2), shared templates (11), sx docs (14), plus remaining spec fn params (z3, test-framework, adapter-dom, adapter-async, engine, eval). Total annotations in codebase: 1043. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -230,7 +230,7 @@ router.sx (standalone — pure string/list ops)")))
|
||||
;; Overview pages (Core / Adapters) — show truncated previews of each file
|
||||
;; ---------------------------------------------------------------------------
|
||||
|
||||
(defcomp ~spec-overview-content (&key spec-title spec-files)
|
||||
(defcomp ~spec-overview-content (&key (spec-title :as string) (spec-files :as list))
|
||||
(~doc-page :title (or spec-title "Specs")
|
||||
(p :class "text-stone-600 mb-6"
|
||||
(case spec-title
|
||||
@@ -264,7 +264,7 @@ router.sx (standalone — pure string/list ops)")))
|
||||
;; Detail page — full source of a single spec file
|
||||
;; ---------------------------------------------------------------------------
|
||||
|
||||
(defcomp ~spec-detail-content (&key spec-title spec-desc spec-filename spec-source spec-prose)
|
||||
(defcomp ~spec-detail-content (&key (spec-title :as string) (spec-desc :as string) (spec-filename :as string) (spec-source :as string) (spec-prose :as string?))
|
||||
(~doc-page :title spec-title
|
||||
(div :class "flex items-baseline gap-3 mb-4"
|
||||
(span :class "text-sm text-stone-400 font-mono" spec-filename)
|
||||
@@ -378,7 +378,7 @@ router.sx (standalone — pure string/list ops)")))
|
||||
;; ---------------------------------------------------------------------------
|
||||
;; @css bg-green-100 text-green-800 bg-green-50 border-green-200 text-green-700
|
||||
|
||||
(defcomp ~bootstrapper-self-hosting-content (&key py-sx-source g0-output g1-output defines-matched defines-total g0-lines g0-bytes verification-status)
|
||||
(defcomp ~bootstrapper-self-hosting-content (&key (py-sx-source :as string) (g0-output :as string) (g1-output :as string) (defines-matched :as number) (defines-total :as number) (g0-lines :as number) (g0-bytes :as number) (verification-status :as string))
|
||||
(~doc-page :title "Self-Hosting Bootstrapper (py.sx)"
|
||||
(div :class "space-y-8"
|
||||
|
||||
@@ -594,7 +594,7 @@ router.sx (standalone — pure string/list ops)")))
|
||||
;; Not found
|
||||
;; ---------------------------------------------------------------------------
|
||||
|
||||
(defcomp ~spec-not-found (&key slug)
|
||||
(defcomp ~spec-not-found (&key (slug :as string))
|
||||
(~doc-page :title "Spec Not Found"
|
||||
(p :class "text-stone-600"
|
||||
"No specification found for \"" slug "\". This spec may not exist yet.")))
|
||||
|
||||
Reference in New Issue
Block a user