import typia from "typia";
import { TypeGuardError } from "typia";

import { _test_functional_assertEqualsReturnAsync } from "../../internal/_test_functional_assertEqualsReturnAsync";
import { DynamicUnion } from "../../structures/DynamicUnion";

export const test_functional_assertEqualsReturnAsync_DynamicUnion =
  _test_functional_assertEqualsReturnAsync(TypeGuardError)("DynamicUnion")(
    DynamicUnion,
  )((p: (input: DynamicUnion) => Promise<DynamicUnion>) =>
    typia.functional.assertEqualsReturn(p),
  );
