Closed samhh closed 1 year ago
Closes #5, #18, #19, #20, and #21. Borrows nomenclature from Serde ^1. Enables decoding the following examples:
type Weather = Sum.Member<"Sun"> | Sum.Member<"Rain", { mm: number }> // Externally tagged { Rain: { mm: 123 } } // Internally tagged { tag: "Rain", mm: 123 } // Adjacently tagged { tag: "Rain", value: { mm: 123 } } // Untagged { mm: 123 }
nullary
nullaryCodec
Closes #5, #18, #19, #20, and #21. Borrows nomenclature from Serde ^1. Enables decoding the following examples:
nullary
. :thinking: And maybe a rename tonullaryCodec
for facade disambiguation.