namespace services.type { export function give(value : string) : Promise { return (repositories.type.identify(value).catch(() => repositories.type.create({"value": value}))) } }