import type * as getStep from '#lib/lexicons/dev/knotless/getStep.ts'; import type { PageLoad } from './$types'; import { xrpc } from '#lib/data.ts'; import { repoUri } from '#lib/steps.ts'; /** The step `step` that `authority`'s repository `repo` publishes, at its latest version, with its versions and who uses it. */ export const load: PageLoad = async (event) => { const { authority, repo, step } = event.params; const params = { repo: repoUri(authority, repo), name: step }; return { step: await xrpc(event, 'dev.knotless.getStep', params) }; };