Templatetypeno test imports ittype Template = {
readonly name: string;
readonly render: (data: TemplateData) => Result<readonly GeneratedFile[], readonly GenerateError[]>;
};A template: its generator's name and what it makes.
What a template is given and what it is (commons 0003-host FR-003): a template is a TypeScript function from the decoded data to a list of generated files, and not text in a template language, so that the compiler checks it and no value of the data can become code. TemplateData is the manifest and the two facts a probe gave; Template names its generator, which the header of each of its files says.
Templatetypeno test imports ittype Template = {
readonly name: string;
readonly render: (data: TemplateData) => Result<readonly GeneratedFile[], readonly GenerateError[]>;
};A template: its generator's name and what it makes.
TemplateDatatypetype TemplateData = {
readonly manifest: Manifest;
/** The manifest says `direnv` is wanted and a probe found it. */
readonly direnv: boolean;
readonly tools: readonly ToolEntry[];
};