({ streams, cities, logFile }: CitiesGeneratorProps)
| 18 | logFile: File |
| 19 | |
| 20 | constructor({ streams, cities, logFile }: CitiesGeneratorProps) { |
| 21 | this.streams = streams.clone() |
| 22 | this.cities = cities |
| 23 | this.storage = new Storage(PUBLIC_DIR) |
| 24 | this.logFile = logFile |
| 25 | } |
| 26 | |
| 27 | async generate(): Promise<void> { |
| 28 | const streams = this.streams |