FuncType - v1.4.1
    Preparing search index...

    Interface Serializable<T>

    interface Serializable<out T> {
        serialize(): SerializationMethods<T>;
        toJSON(): SerializableEnvelope;
    }

    Type Parameters

    • out T

    Hierarchy (View Summary)

    Index

    Methods

    • Custom JSON serialization. Returns the canonical @functype-marked envelope object so native JSON.stringify (and the rest of the JSON toJSON protocol) emits a round-trip-able shape that Serialization.deserialize can reconstruct.

      Added in 1.2.0. Concrete types narrow the return to their specific marker/tag literals.

      Returns SerializableEnvelope