Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 32de83e

Browse files
committed
fs: Allow null in readsync
1 parent 36e16e6 commit 32de83e

File tree

1 file changed

+4
-0
lines changed
  • app/nodejs-v14/src/main/scala/io/scalajs/nodejs/fs

1 file changed

+4
-0
lines changed

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/fs/Fs.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,10 @@ trait Fs extends js.Object {
578578

579579
def readSync(fd: FileDescriptor, buffer: BufferLike, offset: Int, length: Int, position: Int): Int = js.native
580580

581+
def readSync(fd: FileDescriptor, buffer: BufferLike, offset: Int | Null, length: Int | Null, position: Int | Null): Unit = js.native
582+
def readSync(fd: FileDescriptor, buffer: BufferLike, offset: Int | Null): Unit = js.native
583+
def readSync(fd: FileDescriptor, buffer: BufferLike): Unit = js.native
584+
581585
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
582586
def readv(fd: FileDescriptor,
583587
buffers: js.Array[js.typedarray.ArrayBufferView],

0 commit comments

Comments
 (0)