From 5f318a067c673d01c367ab3083a76f4015c45903 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Mon, 30 Nov 2026 08:05:39 -0800 Subject: [PATCH] Add Node realpathSync.native Flow declaration (#60401) Summary: Declare `fs.realpathSync` as a callable object with a `native(path)` method, preserving the existing call signature. Changelog: [Internal] Differential Revision: D135080903 --- flow-typed/environment/node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow-typed/environment/node.js b/flow-typed/environment/node.js index 465203829b3c..98a942bb72eb 100644 --- a/flow-typed/environment/node.js +++ b/flow-typed/environment/node.js @@ -1623,7 +1623,10 @@ declare module 'fs' { cache?: any, callback?: (err: ?ErrnoError, resolvedPath: string) => void, ): void; - declare function realpathSync(path: string, cache?: any): string; + declare var realpathSync: { + (path: string, cache?: any): string, + native(path: string): string, + }; declare function unlink( path: string, callback?: (err: ?ErrnoError) => void,