@@ -2684,7 +2684,7 @@ declare module "fs" {
26842684 } & Abortable )
26852685 | undefined
26862686 | null ,
2687- callback : ( err : NodeJS . ErrnoException | null , data : Buffer ) => void ,
2687+ callback : ( err : NodeJS . ErrnoException | null , data : NonSharedBuffer ) => void ,
26882688 ) : void ;
26892689 /**
26902690 * Asynchronously reads the entire contents of a file.
@@ -2719,7 +2719,7 @@ declare module "fs" {
27192719 | BufferEncoding
27202720 | undefined
27212721 | null ,
2722- callback : ( err : NodeJS . ErrnoException | null , data : string | Buffer ) => void ,
2722+ callback : ( err : NodeJS . ErrnoException | null , data : string | NonSharedBuffer ) => void ,
27232723 ) : void ;
27242724 /**
27252725 * Asynchronously reads the entire contents of a file.
@@ -2728,7 +2728,7 @@ declare module "fs" {
27282728 */
27292729 export function readFile (
27302730 path : PathOrFileDescriptor ,
2731- callback : ( err : NodeJS . ErrnoException | null , data : Buffer ) => void ,
2731+ callback : ( err : NodeJS . ErrnoException | null , data : NonSharedBuffer ) => void ,
27322732 ) : void ;
27332733 export namespace readFile {
27342734 /**
@@ -2744,7 +2744,7 @@ declare module "fs" {
27442744 encoding ?: null | undefined ;
27452745 flag ?: string | undefined ;
27462746 } | null ,
2747- ) : Promise < Buffer > ;
2747+ ) : Promise < NonSharedBuffer > ;
27482748 /**
27492749 * Asynchronously reads the entire contents of a file.
27502750 * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -2778,7 +2778,7 @@ declare module "fs" {
27782778 } )
27792779 | BufferEncoding
27802780 | null ,
2781- ) : Promise < string | Buffer > ;
2781+ ) : Promise < string | NonSharedBuffer > ;
27822782 }
27832783 /**
27842784 * Returns the contents of the `path`.
@@ -2810,7 +2810,7 @@ declare module "fs" {
28102810 encoding ?: null | undefined ;
28112811 flag ?: string | undefined ;
28122812 } | null ,
2813- ) : Buffer ;
2813+ ) : NonSharedBuffer ;
28142814 /**
28152815 * Synchronously reads the entire contents of a file.
28162816 * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -2842,7 +2842,7 @@ declare module "fs" {
28422842 } )
28432843 | BufferEncoding
28442844 | null ,
2845- ) : string | Buffer ;
2845+ ) : string | NonSharedBuffer ;
28462846 export type WriteFileOptions =
28472847 | (
28482848 & ObjectEncodingOptions
0 commit comments