@truffle/abi-utils
Version:
Utilities for working with ABIs
7 lines • 367 B
TypeScript
import type { Abi as SchemaAbi } from "@truffle/contract-schema/spec";
import type { Abi, Entry } from "./types";
export declare const normalize: (looseAbi: SchemaAbi | Abi) => Abi;
type Item<A> = A extends (infer I)[] ? I : never;
export declare const normalizeEntry: (looseEntry: Item<SchemaAbi> | Entry) => Entry;
export {};
//# sourceMappingURL=normalize.d.ts.map