object TSType
- Alphabetic
- By Inheritance
- TSType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
alias[T](name: String, tsType: TypescriptType): TSNamedType[T]
Create a Typescript alias "name" for type T, with the definition of tsType
Create a Typescript alias "name" for type T, with the definition of tsType
alias[Foo]("IFoo", TSString) will generate typescript
type IFoo = string
Example: -
def
alias[T, Alias](name: String)(implicit tsType: TSType[Alias]): TSNamedType[T]
Create a Typescript alias "name" for type T, with the definition of Alias
Create a Typescript alias "name" for type T, with the definition of Alias
alias[Foo, String]("IFoo") will generate typescript
type IFoo = string
Example: -
def
alias[T, Alias](implicit tsType: TSType[Alias], ct: Manifest[T]): TSNamedType[T]
Create a Typescript alias "T" for type T, with the definition of Alias
Create a Typescript alias "T" for type T, with the definition of Alias
alias[Foo, String] will generate typescript
type Foo = string
Example: - def apply[T](tt: TypescriptType): TSType[T]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
external[T](name: String): TSNamedType[T]
Create "name" as the typescript type for T, with "name" being defined elsewhere external[Foo]("IXyz") will use "IXyz" as the typescript type every time something contains a Foo
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
macro
def
fromCaseClass[T]: TSIType[T]
Generate a typescript interface for a case class
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
interface[T](members: (String, TypescriptType)*)(implicit ct: Manifest[T]): TSIType[T]
Create an interface "IClassname" for T
Create an interface "IClassname" for T
interface[Foo]("bar" -> TSString) will output "interface IFoo { bar: string }"
Example: -
def
interface[T](name: String, members: (String, TypescriptType)*): TSIType[T]
Create an interface "name" for T
Create an interface "name" for T
interface[Foo]("MyFoo", "bar" -> TSString) will output "interface MyFoo { bar: string }"
Example: -
def
interfaceIndexed[T](name: String, indexName: String = "key", indexType: TypescriptType = TSString, valueType: TypescriptType): TSNamedType[T]
Create an indexed interface for T
Create an indexed interface for T
interfaceIndexed[Foo]("IFooLookup", "key", TSString, TSInt) will output "interface IFooLookup { [key: string] : Int }"
Example: -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )