Skip to content

Commit 4aa1533

Browse files
committed
Mark "opaque type"-like traits in crypto as sealed traits.
1 parent 2d1fcde commit 4aa1533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/org/scalajs/dom/crypto/Crypto.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ object Pbkdf2Params {
809809

810810
/** See [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶ 13. CryptoKey Interface]] of w3c spec */
811811
@js.native
812-
trait KeyUsage extends js.Any
812+
sealed trait KeyUsage extends js.Any
813813

814814
object KeyUsage {
815815
val encrypt: KeyUsage = "encrypt".asInstanceOf[KeyUsage]
@@ -824,7 +824,7 @@ object KeyUsage {
824824

825825
/** see [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶13 CryptoKey interface]] in W3C doc */
826826
@js.native
827-
trait KeyType extends js.Any
827+
sealed trait KeyType extends js.Any
828828

829829
object KeyType {
830830
val public: KeyType = "public".asInstanceOf[KeyType]
@@ -834,7 +834,7 @@ object KeyType {
834834

835835
/** see [[http://www.w3.org/TR/WebCryptoAPI/#dfn-KeyFormat ¶14.2 Data Types]] in W3C spec */
836836
@js.native
837-
trait KeyFormat extends js.Any
837+
sealed trait KeyFormat extends js.Any
838838

839839
object KeyFormat {
840840

0 commit comments

Comments
 (0)