FuncType - v1.4.1
    Preparing search index...

    Function deserializeStrict

    • Strict variant of deserialize: returns Failure when the parsed JSON doesn't carry an @functype marker at the top level. Use this at API, queue, or RPC boundaries where the wire format MUST be a functype value and pass-through silence would be a bug.

      Implementation note: only the top-level value is checked for the marker. Nested values inside it follow the same lenient pass-through rules as deserialize — a Right containing a plain object still reconstructs fine, you just can't START with a plain object.

      Parameters

      • json: string

      Returns Try<unknown>

      Serialization.deserializeStrict('{"@functype":"Option","_tag":"Some","value":1}')  // → Success(Some(1))
      Serialization.deserializeStrict('{"_tag":"Some","value":1}') // → Failure
      Serialization.deserializeStrict('42') // → Failure