chore(fs#openFile): flags are not optional

This commit is contained in:
Julien Fontanet 2018-12-07 10:16:56 +01:00
parent 2284b3ef0a
commit 9435bd5493

View File

@ -253,7 +253,7 @@ export default class RemoteHandlerAbstract {
await this._mktree(normalizePath(dir))
}
async openFile(path: string, flags?: string): Promise<FileDescriptor> {
async openFile(path: string, flags: string): Promise<FileDescriptor> {
path = normalizePath(path)
return {
@ -417,7 +417,7 @@ export default class RemoteHandlerAbstract {
return this._mktree(dir)
}
async _openFile(path: string, flags?: string): Promise<mixed> {
async _openFile(path: string, flags: string): Promise<mixed> {
throw new Error('Not implemented')
}