export interface Report { title: string; } export type Builder = (name: string) => string; export function helper(name: string): string { return name.toUpperCase(); } export const makeTyped = (value: number): number => { return value + 1; }; export namespace Tools { export function open(path: string): string { return path; } } export function renderReport(name: string, path: string): Report { return { title: helper(Tools.open(path)) + name, }; }