DeclarationMapper

io.github.scalats.core.DeclarationMapper
See theDeclarationMapper companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Defaults extends DeclarationMapper

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Defaults.type
final class EnumerationAsEnum extends DeclarationMapper

Maps EnumDeclaration as TypeScript enum (rather than union type as default).

Maps EnumDeclaration as TypeScript enum (rather than union type as default).

Attributes

Supertypes
class Object
trait Matchable
class Any

Maps SingletonDeclaration as TypeScript const and literal type (super interface is ignored).

Maps SingletonDeclaration as TypeScript const and literal type (super interface is ignored).

  • If the singleton doesn't declare any value, uses its name as literal.
  • If the singleton declares a single value, uses it content as literal.
  • If the singleton declared multiple values, uses them as literal object.

Attributes

Supertypes
class Object
trait Matchable
class Any

Maps UnionDeclaration as simple TypeScript union type (rather than interface as default).

Maps UnionDeclaration as simple TypeScript union type (rather than interface as default).

Declared fields and super interface are ignored.

Attributes

Supertypes
class Object
trait Matchable
class Any

Maps TaggedDeclaration as TypeScript <valueType> & { <name>: undefined } (rather than type alias for <valueType>).

Maps TaggedDeclaration as TypeScript <valueType> & { <name>: undefined } (rather than type alias for <valueType>).

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

type Resolved = (Declaration, Context, PrintStream) => Unit