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

Function isSerializedError

src/serializers.ts:66–67  ·  view source on GitHub ↗
(thing: any)

Source from the content-addressed store, hash-verified

64}
65
66const isSerializedError = (thing: any): thing is SerializedError =>
67 thing && typeof thing === "object" && "__error_marker" in thing && thing.__error_marker === "$$error"
68
69export const DefaultSerializer: Serializer<JsonSerializable> = {
70 deserialize(message: JsonSerializable): any {

Callers 1

deserializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected