# `Decree.EventStore.TypeProvider`
[🔗](https://github.com/sparkle-space/decree/blob/v0.1.0/lib/decree/event_store/type_provider.ex#L1)

Specification to convert between an Elixir struct and a corresponding string type.

# `t`

```elixir
@type t() :: module()
```

# `type`

```elixir
@type type() :: String.t()
```

# `to_string`

```elixir
@callback to_string(struct()) :: type()
```

Type of the given Elixir struct as a string

# `to_struct`

```elixir
@callback to_struct(type()) :: struct()
```

Convert the given type string to an Elixir struct

# `type_provider`

```elixir
@spec type_provider() :: module()
```

Get the configured type provider

---

*Consult [api-reference.md](api-reference.md) for complete listing*
