memory-fs: Make options optional for createReadStream, createWriteStream

This commit is contained in:
Andy Chou
2018-05-14 11:56:39 -07:00
parent 03a4f2840f
commit 2771408ff6
+2 -2
View File
@@ -43,13 +43,13 @@ declare class MemoryFileSystem {
writeFileSync(_path: string, content: string | Buffer, encoding?: string): void;
createReadStream(
path: string, options: {
path: string, options?: {
start: number;
end: number;
}
): any;
createWriteStream(path: string, options: any): any;
createWriteStream(path: string, options?: any): any;
exists(path: string, callback: (isExist: boolean) => any): any;