| 13 | } |
| 14 | |
| 15 | interface SerializedFoo<T extends JsonSerializable> { |
| 16 | __type: "$$foo" |
| 17 | val: T |
| 18 | } |
| 19 | |
| 20 | const isSerializedFoo = (thing: any): thing is SerializedFoo<JsonSerializable> => |
| 21 | thing && typeof thing === "object" && "__type" in thing && thing.__type === "$$foo" |
nothing calls this directly
no outgoing calls
no test coverage detected