import { newInvariantError } from "@apollo/client/utilities/invariant";
export const serializeFetchParameter = (p, label) => {
    let serialized;
    try {
        serialized = JSON.stringify(p);
    }
    catch (e) {
        const parseError = newInvariantError(55, label, e.message);
        parseError.parseError = e;
        throw parseError;
    }
    return serialized;
};
//# sourceMappingURL=serializeFetchParameter.js.map
