These are chat archives for chandu0101/scalajs-react-components

29th
Jun 2018
√ėyvind Raddum Berg
@oyvindberg
Jun 29 2018 15:57
@hamzarhaiem val frDt = "global.Intl.DateTimeFormat".asInstanceOf[js.Function] is wrong, youre passing a string there while it expects a function. Use js.Dynamic.global.Intl.DateTimeFormat.asInstanceOf[js.Function] perhaps
or rather, if it is already typed up and DateTimeFormat is a class (i havent used this) you could try js.constructorOf[Intl.DateTimeFormat] and cast that