Merge pull request #15504 from mrkmg/mz-fs-fix

Removed unneeded optional parameter from mz/fs lstat
This commit is contained in:
Ron Buckton
2017-04-11 17:50:27 -07:00
committed by GitHub

4
types/mz/fs.d.ts vendored
View File

@@ -142,7 +142,7 @@ export function stat(path: string | Buffer): Promise<fs.Stats>;
* `lstat()` is identical to `stat()`, except that if path is a symbolic link, then the link itself
* is stat-ed, not the file that it refers to.
*/
export function lstat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, stats: fs.Stats) => any): void;
export function lstat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: fs.Stats) => any): void;
/**
* Asynchronous `lstat(2)`.
@@ -502,4 +502,4 @@ export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoExcept
* @param path The path to access.
* @param mode An optional integer that specifies the accessibility checks to be performed.
*/
export function access(path: string, mode?: number): Promise<void>;
export function access(path: string, mode?: number): Promise<void>;