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:
@@ -1,10 +1,10 @@
|
||||
;; Example page template and reference index
|
||||
;; Template receives data values (code strings, titles), calls highlight internally.
|
||||
|
||||
(defcomp ~example-page-content (&key title description demo-description demo
|
||||
sx-code sx-lang handler-code handler-lang
|
||||
comp-placeholder-id wire-placeholder-id wire-note
|
||||
comp-heading handler-heading)
|
||||
(defcomp ~example-page-content (&key (title :as string) (description :as string) (demo-description :as string?) demo
|
||||
(sx-code :as string) (sx-lang :as string?) (handler-code :as string) (handler-lang :as string?)
|
||||
(comp-placeholder-id :as string?) (wire-placeholder-id :as string?) (wire-note :as string?)
|
||||
(comp-heading :as string?) (handler-heading :as string?))
|
||||
(~doc-page :title title
|
||||
(p :class "text-stone-600 mb-6" description)
|
||||
(~example-card :title "Demo" :description demo-description
|
||||
|
||||
Reference in New Issue
Block a user