Skip to content

Commit

Permalink
Fix @JSImports for react-select 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Jan 29, 2020
1 parent 307d9bf commit d8be5d6
Showing 1 changed file with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
package io.github.nafg.scalajs.facades.reactselect

import scala.scalajs.js
import scala.scalajs.js.annotation.{JSImport, JSName}
import scala.scalajs.js.annotation.JSImport


@js.native
@JSImport("react-select", JSImport.Namespace)
object ReactSelectRaw extends js.Any {
@JSName(JSImport.Default)
val Select: js.Any = js.native
@JSName("Async")
val SelectAsync: js.Any = js.native
@JSName("Creatable")
val SelectCreatable: js.Any = js.native
@JSName("AsyncCreatable")
val SelectAsyncCreatable: js.Any = js.native
object ReactSelectRaw {
@js.native
@JSImport("react-select", JSImport.Default)
object Select extends js.Object
@js.native
@JSImport("react-select/async", JSImport.Default)
object SelectAsync extends js.Object
@js.native
@JSImport("react-select/creatable", JSImport.Default)
object SelectCreatable extends js.Object
@js.native
@JSImport("react-select/async-creatable", JSImport.Default)
object SelectAsyncCreatable extends js.Object
}

0 comments on commit d8be5d6

Please sign in to comment.