1 2 3 4 5 6 7 8 | 1 | export type Tags = Record<string, string>; export function tagString(tags: Tags, entrySeparator = ':', itemSeparator = ','): string { return Object.entries(tags) .map(entry => `${entry[0]}${entrySeparator}${entry[1]}`) .join(itemSeparator); } |