Newtype
zio.blocks.codegen.ir.Newtype
final case class Newtype(name: String, wrappedType: TypeRef, annotations: List[Annotation] = ..., doc: Option[String] = ...) extends TypeDefinition
Represents a newtype wrapper in the IR.
Value parameters
- annotations
-
Annotations on the newtype (defaults to empty list)
- doc
-
Optional documentation (defaults to None)
- name
-
The name of the newtype
- wrappedType
-
The underlying type being wrapped
Attributes
- Example
-
val userId = Newtype("UserId", wrappedType = TypeRef.Long) - Source
- TypeDefinition.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeDefinitionclass Objecttrait Matchableclass Any
Members list
In this article