UNPKG

inversify

Version:

A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.

18 lines (17 loc) 559 B
import * as METADATA_KEY from '../constants/metadata_keys'; var Metadata = (function () { function Metadata(key, value) { this.key = key; this.value = value; } Metadata.prototype.toString = function () { if (this.key === METADATA_KEY.NAMED_TAG) { return "named: " + String(this.value).toString() + " "; } else { return "tagged: { key:" + this.key.toString() + ", value: " + String(this.value) + " }"; } }; return Metadata; }()); export { Metadata };