Fix reading files from WebAssembly (#4183)
This commit is contained in:
		
							
								
								
									
										2
									
								
								interface.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								interface.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -23,8 +23,8 @@ export interface IElectronAPI { | ||||
|     key: string, | ||||
|     callback: (eventType: string, path: string) => void | ||||
|   ) => void | ||||
|   readFile: typeof fs.readFile | ||||
|   watchFileOff: (path: string, key: string) => void | ||||
|   readFile: (path: string) => ReturnType<fs.readFile> | ||||
|   writeFile: ( | ||||
|     path: string, | ||||
|     data: string | Uint8Array | ||||
|  | ||||
		Reference in New Issue
	
	Block a user