Expand description
interface WebxdcUpdateItemCodec<I extends Item> {
key: I["type"];
decode(payload: Record<string, string | undefined>): I | undefined;
encode(item: I): Record<string, string>;
}Properties§
§
key: I["type"]The item type this codec handles.
The webxdc update log wants JSON.
We can define a way to convert a single item into a JSON object and back.