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

Add type annotation for public members #264

Merged
merged 2 commits into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}