MCPcopy Index your code
hub / github.com/andywer/threads.js / Serializer

Interface Serializer

src/serializers.ts:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { SerializedError } from "./types/messages"
2
3export interface Serializer<Msg = JsonSerializable, Input = any> {
4 deserialize(message: Msg): Input
5 serialize(input: Input): Msg
6}
7
8export interface SerializerImplementation<Msg = JsonSerializable, Input = any> {
9 deserialize(message: Msg, defaultDeserialize: ((msg: Msg) => Input)): Input

Callers 4

deserializeFunction · 0.65
deserializeFunction · 0.65
serializeFunction · 0.65
serializeFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected