import typia from "typia";

import { CustomGuardError } from "../../internal/CustomGuardError";
import { _test_json_assertStringify } from "../../internal/_test_json_assertStringify";
import { ObjectGenericUnion } from "../../structures/ObjectGenericUnion";

export const test_json_assertStringifyCustom_ObjectGenericUnion =
  _test_json_assertStringify(CustomGuardError)(
    "ObjectGenericUnion",
  )<ObjectGenericUnion>(ObjectGenericUnion)((input) =>
    typia.json.assertStringify<ObjectGenericUnion>(
      input,
      (p) => new CustomGuardError(p),
    ),
  );
