io.github.scalats.core

Type members

Classlikes

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

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

See:

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

Default emitter.

Default emitter.

Value parameters:
out

the function to select a PrintStream from type name

final class Field(val name: String, val flags: Set[Flag])
Companion:
object
object Field
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.ast.TypeRef
import io.github.scalats.core.{
 Settings, Field, FieldMapper
}

class CustomFieldMapper extends FieldMapper {
 def apply(
   settings: Settings,
   ownerType: String,
   propertyName: String,
   propertyType: TypeRef) =
   Field("_" + propertyName, Set.empty)
}
Companion:
object
Companion:
class
object Generator

Resolves the imports for TypeScript declarations. Must be consistent with applied Printer and DeclarationMapper.

Resolves the imports for TypeScript declarations. Must be consistent with applied Printer and DeclarationMapper.

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

Companion:
object
Companion:
class
trait Logger
Companion:
object
object Logger
Companion:
class
trait Printer extends (Settings, Kind, String, ListSet[TypeRef]) => PrintStream
Companion:
object
object Printer
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 indent: String, val lineSeparator: TypeScriptLineSeparator, val typeNaming: TypeNaming, val fieldMapper: FieldMapper, 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.

object TypeMapper
Companion:
class
trait TypeNaming extends (Settings, TypeRef) => String
Companion:
object
object TypeNaming
Companion:
class