templateHelpers
variabletype templateHelpers = {
codeBlock: (
contents: string,
language?: string,
attributes?: Record<string, string>
) => string;
createFileAccessor: (file: ExampleFile, title?: string) => FileAccessor;
filesByExt: (files: ExampleFile[], ext: string) => ExampleFile[];
hunkDescription: (
metadata: Record<string, unknown>,
hunkId: string
) => string | undefined;
isProseFile: (file: ExampleFile) => boolean;
langFromPath: (filePath: string) => string;
region: (
files: ExampleFile[],
regionId: string
) => { content: string; file: ExampleFile } | undefined;
slugify: (text: string) => string;
};Collected template helpers exposed as it.helpers.