MCPcopy
hub / github.com/flightcontrolhq/superjson / CustomTransfomer

Interface CustomTransfomer

src/custom-transformer-registry.ts:4–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { find } from './util.js';
3
4export interface CustomTransfomer<I, O extends JSONValue> {
5 name: string;
6 isApplicable: (v: any) => v is I;
7 serialize: (v: I) => O;
8 deserialize: (v: O) => I;
9}
10
11export class CustomTransformerRegistry {
12 private transfomers: Record<string, CustomTransfomer<any, any>> = {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…