SingletonAsLiteral
io.github.scalats.core.DeclarationMapper.SingletonAsLiteral
final class SingletonAsLiteral extends DeclarationMapper
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
-
trait DeclarationMappertrait (Resolved, Settings, Resolved, FieldMapper, Declaration, Context, PrintStream) => Option[Unit]class Objecttrait Matchableclass Any
Members list
In this article