(name: string)
| 274 | |
| 275 | const q = (params: Record<string, string>) => new URLSearchParams(params); |
| 276 | const route = (name: string) => { |
| 277 | const r = cg.getNodesByKind('route').find((r) => r.name === name); |
| 278 | if (!r) throw new Error(`no route ${name}: ${cg.getNodesByKind('route').map((r) => r.name).join(', ')}`); |
| 279 | return r; |
| 280 | }; |
| 281 | const effect = (p: Awaited<ReturnType<typeof buildSteps>>, category: string) => p.steps.find((s) => s.kind === 'effect' && s.effect?.category === category); |
| 282 | |
| 283 | /** |
no test coverage detected