final class SingleFilePrinter extends BasePrinter
Prints all the generated code the a single file.
The default file name is scala.ts
.
A custom file name can be specified using the scala-ts.single-filename
system property.
- Alphabetic
- By Inheritance
- SingleFilePrinter
- BasePrinter
- TypeScriptPrinter
- Function4
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 apply(conf: Settings, kind: Kind, name: String, requires: ListSet[TypeRef]): PrintStream
Resolves the printer to be used to the specified type (and its required associated types).
Resolves the printer to be used to the specified type (and its required associated types).
- kind
the kind of the declaration to be printed
- name
the name of the type whose declaration must be printed
- requires
the type required by the current declaration
- Definition Classes
- SingleFilePrinter → TypeScriptPrinter → Function4
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def curried: (Settings) => (Kind) => (String) => (ListSet[TypeRef]) => PrintStream
- Definition Classes
- Function4
- Annotations
- @unspecialized()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- def printImports(settings: Settings, requires: ListSet[TypeRef], out: PrintStream)(importPath: (TypeRef) => String): Unit
Prints TypeScript imports from the required types.
Prints TypeScript imports from the required types. If the system property
scala-ts.printer.import-pattern
- importPath
the function applied to each required type to determine the import path
- Attributes
- protected
- Definition Classes
- BasePrinter
- def printPrelude(out: PrintStream): Unit
If the system property
scala-ts.printer.prelude-url
is defined, then print the content from the URL as prelude to the given stream.If the system property
scala-ts.printer.prelude-url
is defined, then print the content from the URL as prelude to the given stream.- Attributes
- protected
- Definition Classes
- BasePrinter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function4 → AnyRef → Any
- def tupled: ((Settings, Kind, String, ListSet[TypeRef])) => PrintStream
- Definition Classes
- Function4
- Annotations
- @unspecialized()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()