Helpful
    Preparing search index...

    Interface IZSerialize<T, S>

    Represents an object that can be used to serialize something to a output type.

    interface IZSerialize<T, S = string> {
        serialize(candidate: T | null | undefined): S | undefined;
    }

    Type Parameters

    • T

      The data type to serialize.

    • S = string

      The output serialization type.

    Implemented by

    Index

    Methods

    Methods

    • Serializes a candidate object to a string.

      Parameters

      • candidate: T | null | undefined

        The candidate object.

      Returns S | undefined

      The string representation of the candidate or undefined if no such string representation could be serialized.