import type { UsecaseSymbolId } from '../types/utility.type'; export function createSymbolId< Type extends string, Name extends string, >(type: Type, name: Name): UsecaseSymbolId; export function createSymbolId< Type extends string, Name extends string, >(id: string): UsecaseSymbolId; export function createSymbolId( typeOrId: string, name?: string, ): string { if (typeof name === 'string') { return `${typeOrId}<${name}>`; } return typeOrId; }