View Source Kinda.CodeGen.TypeDecl (kinda v0.11.0)

A generated type declaration.

Type declarations are projected from the "records" entries of a signature manifest into typed record projections (Kinda.CodeGen.TypeSpecRef), and can be round-tripped to and from manifest maps.

Summary

Types

t()

@type t() :: %Kinda.CodeGen.TypeDecl{
  doc: String.t() | nil,
  name: atom(),
  source_record_name: String.t() | nil,
  typespec: Kinda.CodeGen.TypeSpecRef.t()
}

Functions

from_manifest(manifest)

@spec from_manifest(map()) :: t()

from_record_manifest(arg1)

@spec from_record_manifest(map()) :: [t()]

from_signature_manifest(arg1)

@spec from_signature_manifest(map() | nil) :: [t()]

to_manifest(type_decl)

@spec to_manifest(t()) :: map()