@kubiklabs/wasmkit
Version:
Wasmkit is a development environment to compile, deploy, test, run cosmwasm contracts on different networks.
20 lines (19 loc) • 670 B
TypeScript
export declare function mkErrorMessage(path: string, value: any, expectedType: string): string;
export default class CfgErrors {
errors: string[];
prefix: string;
constructor(prefix?: string);
push(net: string, field: string, val: any, expectedType: string): void;
appendErrors(errors: string[]): void;
isEmpty(): boolean;
toString(): string;
putter(net: string, field: string): ErrorPutter;
}
export declare class ErrorPutter {
errs: CfgErrors;
net: string;
field: string;
isEmpty: boolean;
constructor(errs: CfgErrors, net: string, field: string);
push(field: string, val: any, expectedType: string): boolean;
}