@connectv/core
Version:
agent-based reactive programming library for typescript/javascript
16 lines • 408 B
JavaScript
import { isBindable } from '../shared/bindable';
export function singleton() {
return function (_Class) {
var _a;
let agent = new _Class();
if (isBindable(agent)) {
agent.bind();
}
return _a = class extends _Class {
},
_a.instance = agent,
_a;
};
}
export default singleton;
//# sourceMappingURL=singleton.js.map