EnumerationAsEnum
io.github.scalats.core.DeclarationMapper.EnumerationAsEnum
final class EnumerationAsEnum extends DeclarationMapper
Maps EnumDeclaration
as TypeScript enum
(rather than union type as default).
Attributes
- Graph
-
- Supertypes
-
trait DeclarationMappertrait (Resolved, Settings, Resolved, FieldMapper, Declaration, Context, PrintStream) => Option[Unit]class Objecttrait Matchableclass 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
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
def tupled: ((Resolved, Settings, Resolved, FieldMapper, Declaration, Context, PrintStream)) => Option[Unit]
Attributes
- Inherited from:
- Function7
In this article