(object: string)
| 22 | ) {} |
| 23 | |
| 24 | private getExportedObject(object: string): any { |
| 25 | const key = object as keyof Module |
| 26 | const module = this.modules.find((m) => m[key] !== undefined) |
| 27 | if (!module) { |
| 28 | throw new FunctionNotFound(`Object ${object} not found`) |
| 29 | } |
| 30 | |
| 31 | return module[key] |
| 32 | } |
| 33 | |
| 34 | hasObject(object: string): boolean { |
| 35 | return !!this.daggerModule.objects[object] |
no test coverage detected