@robotlegsjs/core
Version:
An architecture-based IoC framework for JavaScript/TypeScript
29 lines • 954 B
JavaScript
;
// ------------------------------------------------------------------------------
// Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
// ------------------------------------------------------------------------------
Object.defineProperty(exports, "__esModule", { value: true });
exports.UID = void 0;
var inversify_1 = require("inversify");
/**
* Utility for generating unique object IDs
*/
var UID = /** @class */ (function () {
function UID() {
}
/**
* Generates a UID for a given source object or class
*
* @param source The source object or class
* @return Generated UID
*/
UID.create = function (source) {
return inversify_1.id().toString();
};
return UID;
}());
exports.UID = UID;
//# sourceMappingURL=UID.js.map