import type * as getTemplate from '#lib/lexicons/dev/knotless/getTemplate.ts'; import type { PageLoad } from './$types'; import { repoPage } from '#lib/data.ts'; /** The repository, and the template it asks its issues to follow. */ export const load: PageLoad = async (event) => { const { repo, answer } = await repoPage( event, 'dev.knotless.getTemplate', { kind: 'issue' } ); return { repo, template: answer.template ?? '' }; };