Skip to content

Commit

Permalink
Revamp naming of anonynous interfaces (necessary after type expansion…
Browse files Browse the repository at this point in the history
… updates)
  • Loading branch information
oyvindberg committed Mar 10, 2020
1 parent 9ba09c7 commit 849665a
Show file tree
Hide file tree
Showing 89 changed files with 275 additions and 222 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
organization := "org.scalablytyped"
name := "chart_dot_js"
version := "0.0-unknown-5366ae"
version := "0.0-unknown-350f17"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._

@js.native
trait AnonGlobal
trait AnonDictkeyGlobal
extends /* key */ StringDictionary[js.Any] {
var global: ChartOptions with ChartFontOptions = js.native
}

object AnonGlobal {
object AnonDictkeyGlobal {
@scala.inline
def apply(
global: ChartOptions with ChartFontOptions,
StringDictionary: /* key */ StringDictionary[js.Any] = null
): AnonGlobal = {
): AnonDictkeyGlobal = {
val __obj = js.Dynamic.literal(global = global.asInstanceOf[js.Any])
if (StringDictionary != null) js.Dynamic.global.Object.assign(__obj, StringDictionary)
__obj.asInstanceOf[AnonGlobal]
__obj.asInstanceOf[AnonDictkeyGlobal]
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._

@js.native
trait TypeofClassChart
trait TypeofClassChartInstantiableChart
extends Instantiable2[
(/* context */ ArrayLike[CanvasRenderingContext2D | HTMLCanvasElement]) | (/* context */ CanvasRenderingContext2D) | (/* context */ HTMLCanvasElement) | (/* context */ String),
/* options */ js.Any,
Chart
] {
var controllers: StringDictionary[js.Any] = js.native
var defaults: AnonGlobal = js.native
var defaults: AnonDictkeyGlobal = js.native
}

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package typings.chartJs.mod

import org.scalablytyped.runtime.StringDictionary
import typings.chartJs.AnonGlobal
import typings.chartJs.TypeofClassChart
import typings.chartJs.AnonDictkeyGlobal
import typings.chartJs.TypeofClassChartInstantiableChart
import typings.std.ArrayLike
import typings.std.CanvasRenderingContext2D
import typings.std.HTMLCanvasElement
Expand All @@ -22,8 +22,8 @@ class ^ protected () extends Chart {
@JSImport("chart.js", JSImport.Namespace)
@js.native
object ^ extends js.Object {
val Chart: TypeofClassChart = js.native
val Chart: TypeofClassChartInstantiableChart = js.native
var controllers: StringDictionary[js.Any] = js.native
var defaults: AnonGlobal = js.native
var defaults: AnonDictkeyGlobal = js.native
}

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
organization := "org.scalablytyped"
name := "angular-agility"
version := "0.0-unknown-ad90c7"
version := "0.0-unknown-3a904b"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "angular" % "1.6-a834ce",
"org.scalablytyped" %%% "angular" % "1.6-20d317",
"org.scalablytyped" %%% "std" % "0.0-unknown-eec27d")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
organization := "org.scalablytyped"
name := "angular"
version := "1.6-a834ce"
version := "1.6-20d317"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._

@js.native
trait AnonArgs[T]
trait Anon0[T]
extends Instantiable1[/* args (repeated) */ js.Any, T]

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package typings.angular.mod

import typings.angular.AnonArgs
import typings.angular.Anon0
import typings.angular.mod._Global_.Function
import scala.scalajs.js
import scala.scalajs.js.`|`
Expand All @@ -22,8 +22,8 @@ object auto extends js.Object {
def get[T](name: String): T = js.native
def get[T](name: String, caller: String): T = js.native
def has(name: String): Boolean = js.native
def instantiate[T](typeConstructor: AnonArgs[T]): T = js.native
def instantiate[T](typeConstructor: AnonArgs[T], locals: js.Any): T = js.native
def instantiate[T](typeConstructor: Anon0[T]): T = js.native
def instantiate[T](typeConstructor: Anon0[T], locals: js.Any): T = js.native
def invoke[T](func: Injectable[Function | (js.Function1[/* repeated */ _, T])]): T = js.native
def invoke[T](func: Injectable[Function | (js.Function1[/* repeated */ _, T])], context: js.Any): T = js.native
def invoke[T](func: Injectable[Function | (js.Function1[/* repeated */ _, T])], context: js.Any, locals: js.Any): T = js.native
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "componentstest"
version := "0.0-unknown-450911"
version := "0.0-unknown-3a2169"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "react-bootstrap"
version := "0.32-679545"
version := "0.32-5c459b"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "react-contextmenu"
version := "2.13.0-40b38c"
version := "2.13.0-9f7bb6"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "react-dropzone"
version := "10.1.10-7e59d8"
version := "10.1.10-198c3a"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "react-select"
version := "0.0-unknown-30f6e8"
version := "0.0-unknown-9aaab6"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
organization := "org.scalablytyped"
name := "react"
version := "16.9.2-578572"
version := "16.9.2-424c14"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._

@js.native
trait AnonDefaultPropsD extends js.Object {
trait Anon0 extends js.Object {
var defaultProps: /* import warning: importer.ImportType#apply Failed type conversion: infer D */ js.Any = js.native
}

object AnonDefaultPropsD {
object Anon0 {
@scala.inline
def apply(
defaultProps: /* import warning: importer.ImportType#apply Failed type conversion: infer D */ js.Any
): AnonDefaultPropsD = {
): Anon0 = {
val __obj = js.Dynamic.literal(defaultProps = defaultProps.asInstanceOf[js.Any])

__obj.asInstanceOf[AnonDefaultPropsD]
__obj.asInstanceOf[Anon0]
}
}

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "semantic-ui-react"
version := "0.0-unknown-de4fd1"
version := "0.0-unknown-d58e2d"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "stardust-ui__react-component-event-listener"
version := "0.38.0-bbd7a6"
version := "0.38.0-e69496"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._

@js.native
trait AnonCaptureListener extends js.Object {
trait AnonListener extends js.Object {
var capture: js.UndefOr[scala.Nothing] = js.native
var listener: js.UndefOr[scala.Nothing] = js.native
var targetRef: js.UndefOr[scala.Nothing] = js.native
var `type`: js.UndefOr[scala.Nothing] = js.native
}

object AnonCaptureListener {
object AnonListener {
@scala.inline
def apply(
capture: js.UndefOr[scala.Nothing] = js.undefined,
listener: js.UndefOr[scala.Nothing] = js.undefined,
targetRef: js.UndefOr[scala.Nothing] = js.undefined,
`type`: js.UndefOr[scala.Nothing] = js.undefined
): AnonCaptureListener = {
): AnonListener = {
val __obj = js.Dynamic.literal()
if (!js.isUndefined(capture)) __obj.updateDynamic("capture")(capture.asInstanceOf[js.Any])
if (!js.isUndefined(listener)) __obj.updateDynamic("listener")(listener.asInstanceOf[js.Any])
if (!js.isUndefined(targetRef)) __obj.updateDynamic("targetRef")(targetRef.asInstanceOf[js.Any])
if (!js.isUndefined(`type`)) __obj.updateDynamic("type")(`type`.asInstanceOf[js.Any])
__obj.asInstanceOf[AnonCaptureListener]
__obj.asInstanceOf[AnonListener]
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object eventListenerMod extends js.Object {
@js.native
object default extends js.Object {
var displayName: String = js.native
var propTypes: AnonCapture | AnonCaptureListener = js.native
var propTypes: AnonCapture | AnonListener = js.native
def apply[T /* <: EventTypes */](props: EventListenerOptions[T]): js.Any = js.native
@js.native
object defaultProps extends js.Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object mod extends js.Object {
@js.native
object EventListener extends js.Object {
var displayName: String = js.native
var propTypes: AnonCapture | AnonCaptureListener = js.native
var propTypes: AnonCapture | AnonListener = js.native
def apply[T /* <: EventTypes */](props: EventListenerOptions[T]): js.Any = js.native
@js.native
object defaultProps extends js.Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "stardust-ui__react-component-ref"
version := "0.38.0-524ec6"
version := "0.38.0-6cfd79"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.5.0",
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"org.scalablytyped" %%% "react" % "16.9.2-578572",
"org.scalablytyped" %%% "react" % "16.9.2-424c14",
"org.scalablytyped" %%% "std" % "0.0-unknown-266f11")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._

@js.native
trait AnonChildrenInnerRef extends js.Object {
trait AnonInnerRef extends js.Object {
var children: js.UndefOr[scala.Nothing] = js.native
var innerRef: js.UndefOr[scala.Nothing] = js.native
}

object AnonChildrenInnerRef {
object AnonInnerRef {
@scala.inline
def apply(
children: js.UndefOr[scala.Nothing] = js.undefined,
innerRef: js.UndefOr[scala.Nothing] = js.undefined
): AnonChildrenInnerRef = {
): AnonInnerRef = {
val __obj = js.Dynamic.literal()
if (!js.isUndefined(children)) __obj.updateDynamic("children")(children.asInstanceOf[js.Any])
if (!js.isUndefined(innerRef)) __obj.updateDynamic("innerRef")(innerRef.asInstanceOf[js.Any])
__obj.asInstanceOf[AnonChildrenInnerRef]
__obj.asInstanceOf[AnonInnerRef]
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ object mod extends js.Object {
@js.native
object RefFindNode extends js.Object {
var displayName: String = js.native
var propTypes: AnonChildren | AnonChildrenInnerRef = js.native
var propTypes: AnonChildren | AnonInnerRef = js.native
}

/* static members */
@js.native
object RefForward extends js.Object {
var displayName: String = js.native
var propTypes: AnonChildren | AnonChildrenInnerRef = js.native
var propTypes: AnonChildren | AnonInnerRef = js.native
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object refFindNodeMod extends js.Object {
@js.native
object default extends js.Object {
var displayName: String = js.native
var propTypes: AnonChildren | AnonChildrenInnerRef = js.native
var propTypes: AnonChildren | AnonInnerRef = js.native
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object refForwardMod extends js.Object {
@js.native
object default extends js.Object {
var displayName: String = js.native
var propTypes: AnonChildren | AnonChildrenInnerRef = js.native
var propTypes: AnonChildren | AnonInnerRef = js.native
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
organization := "org.scalablytyped"
name := "componentstest"
version := "0.0-unknown-0b39d4"
version := "0.0-unknown-35a067"
scalaVersion := "2.13.1"
enablePlugins(ScalaJSPlugin)
libraryDependencies ++= Seq(
"com.olvind" %%% "scalablytyped-runtime" % "2.1.0",
"me.shadaj" %%% "slinky-web" % "0.6.4",
"org.scalablytyped" %%% "react" % "16.9.2-3ccb0b",
"org.scalablytyped" %%% "react" % "16.9.2-b2066d",
"org.scalablytyped" %%% "std" % "0.0-unknown-18a94a")
publishArtifact in packageDoc := false
scalacOptions ++= List("-encoding", "utf-8", "-g:notailcalls", "-P:scalajs:sjsDefinedByDefault")
Expand Down
Loading

0 comments on commit 849665a

Please sign in to comment.