Replace internal usages of @iov/encoding with @cosmjs/{encoding,math}

This commit is contained in:
Simon Warta
2020-06-09 17:54:17 +02:00
parent 3cfad7a541
commit 88faba8bed
65 changed files with 87 additions and 82 deletions
+1
View File
@@ -1,2 +1,3 @@
export { assert } from "./assert";
export { sleep } from "./sleep";
export { isNonNullObject, isUint8Array } from "./typechecks";
+8
View File
@@ -0,0 +1,8 @@
/**
* Checks if data is a non-null object (i.e. matches the TypeScript object type)
*/
export declare function isNonNullObject(data: unknown): data is object;
/**
* Checks if data is an Uint8Array. Note: Buffer is treated as not a Uint8Array
*/
export declare function isUint8Array(data: unknown): data is Uint8Array;