com.olvind.mui.std.ReturnType.scala Maven / Gradle / Ivy
package com.olvind.mui.std
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* Obtain the return type of a function type
*/
/** NOTE: Conditional type definitions are impossible to translate to Scala.
* See https://www.typescriptlang.org/docs/handbook/2/conditional-types.html for an intro.
* You'll have to cast your way around this structure, unfortunately.
* TS definition: {{{
T extends (args : any): infer R ? R : any
}}}
*/
@js.native
trait ReturnType[T /* <: js.Function1[/* args */ Any, Any] */] extends StObject