--- import { Code } from '@astrojs/starlight/components'; import { runicnpcCalls } from '../data/runicnpc.mjs'; /** * One RunicNPC call's signature, printed from `src/data/runicnpc.mjs` (PLAN.md ยง16, D62). * * The API page writes each call's prose by hand and prints its signature through this, so the * signature a reader copies is the one `scripts/checkReference.mjs` holds against * `docs` `main:runicnpc/API.md`. The check also requires exactly one of these per call. */ interface Props { call: keyof typeof runicnpcCalls; } const { call } = Astro.props; const sig = runicnpcCalls[call]; if (!sig) throw new Error(`Signature: "${call}" is not in runicnpcCalls (src/data/runicnpc.mjs).`); ---