trufflesuite/truffle

View on GitHub
packages/codec-components/src/react/components/codec/format.errors.type-error-union.tsx

Summary

Maintainability
A
40 mins
Test Coverage
import type { Format } from "@truffle/codec";
import { createCodecComponent } from "../../utils/create-codec-component";
import { ComponentDataTypeIsNeverError } from "../../../utils";

export const { TypeErrorUnion } = createCodecComponent(
  "TypeErrorUnion",
  (_data: Format.Errors.TypeErrorUnion) => {
    throw new ComponentDataTypeIsNeverError(
      "Codec.Format.Errors.TypeErrorUnion"
    );
  }
);