forked from MapComplete/MapComplete
		
	Fix typing in scripts
This commit is contained in:
		
							parent
							
								
									6ca5c31e3a
								
							
						
					
					
						commit
						3c345f43a3
					
				
					 2 changed files with 8 additions and 7 deletions
				
			
		|  | @ -76,7 +76,7 @@ async function readGeojsonLineByLine(inputFile: string): Promise<any[]> { | |||
| 
 | ||||
| async function readFeaturesFromGeoJson(inputFile: string): Promise<any[]> { | ||||
|     try { | ||||
|         return JSON.parse(fs.readFileSync(inputFile, "UTF-8")).features | ||||
|         return JSON.parse(fs.readFileSync(inputFile, { encoding: "utf-8" })).features | ||||
|     } catch (e) { | ||||
|         // We retry, but with a line-by-line approach
 | ||||
|         return await readGeojsonLineByLine(inputFile) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue