DeclarationMapper

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

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Keywords
  • no keywords
  • final
  • lazy

Members list

Concise view

Type members

Classlikes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

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

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

Attributes

Graph
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

Graph
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

Graph
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

Graph
Supertypes
class Object
trait Matchable
class Any

Types

type Resolved = (Declaration, PrintStream) => Unit