stil4m/elm-syntax/7.3.9

Elm.Syntax.TypeAlias

This syntax represents type aliases. For example:

{-| This is a person
-}
type alias Person =
    { name : String
    , age : Int
    }

Types

type alias TypeAlias =
{ documentation : Maybe (Node Documentation)
, name : Node String
, generics : List (Node String)
, typeAnnotation : Node TypeAnnotation
}

Type alias that defines the syntax for a type alias. A bit meta, but you get the idea. All information that you can define in a type alias is embedded.

Serialization

encode : TypeAlias -> Value

Encode a TypeAlias syntax element to JSON.

decoder : Decoder TypeAlias

JSON decoder for a Declaration syntax element.