UnionAsSimpleUnion

io.github.scalats.core.DeclarationMapper.UnionAsSimpleUnion

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

Members list

Value members

Concrete methods

def apply(parent: Resolved, settings: Settings, typeMapper: Resolved, fieldMapper: FieldMapper, declaration: Declaration, context: Context, out: PrintStream): Option[Unit]

Value parameters

context

the optional context (useful for conditional while composing)

declaration

the transpiled declaration to be emitted

fieldMapper

the field mapper

out

the printer to output the code

parent

the parent declaration mapper

settings

the current settings

typeMapper

the resolved type mapper

Attributes

Returns

Some print operation, or None if declaration is not handled

Inherited methods

Attributes

Inherited from:
DeclarationMapper
def curried: Resolved => Settings => Resolved => FieldMapper => Declaration => Context => PrintStream => Option[Unit]

Attributes

Inherited from:
Function7
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Inherited from:
DeclarationMapper

Attributes

Inherited from:
Function7