UNPKG

@ckb-lumos/codec

Version:

Make your own molecule binding in JavaScript(TypeScript)

17 lines 780 B
export declare function assertHexDecimal(str: string, byteLength?: number): void; /** * Assert if a string is a valid hex string that is matched with /^0x([0-9a-fA-F][0-9a-fA-F])*$/ * @param str * @param byteLength */ export declare function assertHexString(str: string, byteLength?: number): void; export declare function assertUtf8String(str: string): void; export declare function assertBufferLength(buf: { byteLength: number; }, length: number): void; export declare function assertMinBufferLength(buf: { byteLength: number; }, length: number): void; export declare function isObjectLike(x: unknown): x is Record<string, unknown>; export declare function trackCodeExecuteError<T>(path: string | number | symbol, fn: () => T): T; //# sourceMappingURL=utils.d.ts.map