mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Merge pull request #15504 from mrkmg/mz-fs-fix
Removed unneeded optional parameter from mz/fs lstat
This commit is contained in:
4
types/mz/fs.d.ts
vendored
4
types/mz/fs.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user