io.github.scalats.core.DeclarationMapper$.SingletonAsLiteral
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
Members list
Concise view
Value members
Attributes
- 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
- Returns:
Some print operation, or None if declaration
is not handled
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