Interface Serializers<SerCtx>

interface Serializers<SerCtx> {
    forClass: {
        class: SomeConstructor;
        fns: SerDesFn<SerCtx>[];
    }[];
    forGuard: {
        fn: SerDesFn<SerCtx>;
        guard: SerDesGuard<SerCtx>;
    }[];
    forName: Record<string, SerDesFn<SerCtx>[]>;
    forPath: Record<number, {
        fns: SerDesFn<SerCtx>[];
        path: (string | number)[];
    }[]>;
}

Type Parameters

  • SerCtx

Properties

forClass: {
    class: SomeConstructor;
    fns: SerDesFn<SerCtx>[];
}[]

Type declaration

forGuard: {
    fn: SerDesFn<SerCtx>;
    guard: SerDesGuard<SerCtx>;
}[]

Type declaration

forName: Record<string, SerDesFn<SerCtx>[]>
forPath: Record<number, {
    fns: SerDesFn<SerCtx>[];
    path: (string | number)[];
}[]>