Fnative
Bun

function

fs.realpathSync.native

function native(
path: PathLike,
options?: EncodingOption
): string;
function native(
path: PathLike,
): NonSharedBuffer;
function native(
path: PathLike,
options?: EncodingOption
): string | NonSharedBuffer;

Referenced types

type PathLike = string | Buffer | URL

Valid types for path values in "fs".

type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null
type BufferEncodingOption = 'buffer' | { encoding: 'buffer' }