io.github.scalats.core

Type members

Classlikes

trait Logger
Companion:
object
object Logger
Companion:
class
final class ScalaParser(compiled: Set[String], logger: Logger)(using ctx: Context)
final class Settings(val emitCodecs: EmitCodecs, val optionToNullable: Boolean, val prependEnclosingClassNames: Boolean, val typescriptIndent: String, val typescriptLineSeparator: TypeScriptLineSeparator, val typeNaming: TypeScriptTypeNaming, val fieldMapper: TypeScriptFieldMapper, val discriminator: Discriminator)

Created by Milosz on 09.12.2016.

Created by Milosz on 09.12.2016.

Value parameters:
optionToNullable

generate nullable type as T | null

Companion:
object
object Settings
Companion:
class
final class Transpiler(config: Settings)

Created by Milosz on 09.06.2016.

Created by Milosz on 09.06.2016.

The implementations must be class with a no-arg constructor.

The implementations must be class with a no-arg constructor.

See:

Companion:
object
final class TypeScriptEmitter(val settings: Settings, out: Printer, importResolver: ImportResolver, declarationMapper: DeclarationMapper, typeMapper: TypeMapper)
Value parameters:
out

the function to select a PrintStream from type name

final class TypeScriptField(val name: String, val flags: Set[Flag])
Companion:
object
Companion:
class

Functional type to customize the field naming and access.

Functional type to customize the field naming and access.

import scala.collection.immutable.Set
import io.github.scalats.typescript.TypeRef
import io.github.scalats.core.{
 Settings, TypeScriptField, TypeScriptFieldMapper
}

class CustomTypeScriptFieldMapper extends TypeScriptFieldMapper {
 def apply(
   settings: Settings,
   ownerType: String,
   propertyName: String,
   propertyType: TypeRef) =
   TypeScriptField("_" + propertyName, Set.empty)
}
Companion:
object

Resolves the imports for TypeScript declarations. Must be consistent with applied TypeScriptPrinter and TypeScriptDeclarationMapper.

Resolves the imports for TypeScript declarations. Must be consistent with applied TypeScriptPrinter and TypeScriptDeclarationMapper.

The implementations must be class with a no-arg constructor.

Companion:
object
trait TypeScriptPrinter extends (Settings, Kind, String, ListSet[TypeRef]) => PrintStream
Companion:
object
Companion:
class
Companion:
class
Companion:
object
Companion:
class