Skip to content

Commit 3d660dc

Browse files
javachemeta-codesync[bot]
authored andcommitted
Add Node realpathSync.native Flow declaration (#60401)
Summary: Pull Request resolved: #60401 Declare `fs.realpathSync` as a callable object with a `native(path)` method, preserving the existing call signature. Changelog: [Internal] Differential Revision: D135080903
1 parent e72be4b commit 3d660dc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎flow-typed/environment/node.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,10 @@ declare module 'fs' {
16231623
cache?: any,
16241624
callback?: (err: ?ErrnoError, resolvedPath: string) => void,
16251625
): void;
1626-
declare function realpathSync(path: string, cache?: any): string;
1626+
declare var realpathSync: {
1627+
(path: string, cache?: any): string,
1628+
native(path: string): string,
1629+
};
16271630
declare function unlink(
16281631
path: string,
16291632
callback?: (err: ?ErrnoError) => void,

0 commit comments

Comments
 (0)