FuncType - v0.20.0
    Preparing search index...

    Function createSerializationCompanion

    • Creates companion serialization methods for a type

      Type Parameters

      • T

      Parameters

      • reconstructor: (parsed: { _tag: string; [key: string]: unknown }) => T

        Function to reconstruct the type from parsed data

      Returns {
          fromBinary: (binary: string) => T;
          fromJSON: (json: string) => T;
          fromYAML: (yaml: string) => T;
      }

      Companion methods object with fromJSON, fromYAML, and fromBinary