trufflesuite/truffle

View on GitHub
packages/codec-components/src/react/components/codec/format.errors.mapping-error.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 { MappingError } = createCodecComponent(
  "MappingError",
  (_data: Format.Errors.MappingError) => {
    throw new ComponentDataTypeIsNeverError("Codec.Format.Errors.MappingError");
  }
);