diff --git a/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/buffer/package.scala b/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/buffer/package.scala index 3c31e7dfd..6eea42f14 100644 --- a/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/buffer/package.scala +++ b/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/buffer/package.scala @@ -71,13 +71,13 @@ package object buffer { * Note that this is a property on the buffer module returned by require('buffer'), not on the * Buffer global or a Buffer instance. */ - val INSPECT_MAX_BYTES = BufferNamespace.INSPECT_MAX_BYTES + val INSPECT_MAX_BYTES: UID = BufferNamespace.INSPECT_MAX_BYTES /** * On 32-bit architectures, this value is (2^30)-1 (~1GB). On 64-bit architectures, this value is (2^31)-1 (~2GB).F * Note that this is a property on the buffer module returned by require('buffer'), not on the Buffer global or a Buffer instance. */ - val kMaxLength = BufferNamespace.kMaxLength + val kMaxLength: Double = BufferNamespace.kMaxLength @js.native @JSImport("buffer", JSImport.Namespace) diff --git a/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/crypto/package.scala b/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/crypto/package.scala index 1e73caff0..512a5ec07 100644 --- a/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/crypto/package.scala +++ b/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/crypto/package.scala @@ -12,6 +12,6 @@ package object crypto { type Callback2[T1, T2] = js.Function3[NodeError, T1, T2, Any] implicit final class CryptoModuleEnrichment(private val crypto: Crypto.type) extends AnyVal { - @inline def Certificate = io.scalajs.nodejs.crypto.Certificate + @inline def Certificate: io.scalajs.nodejs.crypto.Certificate.type = io.scalajs.nodejs.crypto.Certificate } }