Support specifying file encoding
This commit is contained in:
@@ -55,6 +55,10 @@ export const getAppVersion: RpcEvent<void, string> = {
|
||||
topic: 'getAppVersion',
|
||||
}
|
||||
|
||||
export const writeFile: RpcEvent<{ filePath: string, data: string }, void> = {
|
||||
export const writeToFile: RpcEvent<{ filePath: string, data: string, encoding?: string }, void> = {
|
||||
topic: 'writeFile',
|
||||
}
|
||||
|
||||
export const readFromFile: RpcEvent<{ filePath: string, encoding?: string }, Buffer> = {
|
||||
topic: 'readFromFile',
|
||||
}
|
||||
Reference in New Issue
Block a user