0

I just upgraded from version 0.5.6 to 0.6.3 of the Scala js and now some of my code no longer compiles. I have defined the following object:

trait Call extends js.Object {
    val name: js.String = ???
    val params: js.Dictionary[String] = ??? 
}

Which gives me the following compiler error:

type String is not a member of package scala.scalajs.js

Should I just use the standard String?

user79074
  • 4,937
  • 5
  • 29
  • 57

1 Answers1

0

Yes, you should use the standard String.

Similarly, replace js.Boolean by Boolean, js.Number by Double, and js.Undefined by Unit.

See also the type correspondence table in the documentation.

sjrd
  • 21,805
  • 2
  • 61
  • 91