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