UNPKG

react-obsidian

Version:

Dependency injection framework for React and React Native applications

24 lines 661 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConstructorArgs = void 0; class ConstructorArgs { constructor() { this.args = new Array(); } hasArgs() { return this.args.length > 0; } size() { return this.args.length; } add(paramName, index) { this.args.push([paramName, index]); } getProperty(index) { if (this.args.length <= index) throw new Error('IOOB while trying to get constructor args to inject'); return this.args[index][0]; } } exports.ConstructorArgs = ConstructorArgs; //# sourceMappingURL=ConstructorArgs.js.map