Remove types from VCS

This commit is contained in:
willclarktech
2021-02-09 14:57:24 +00:00
parent 31cdd91991
commit 1c6f3ee9a5
151 changed files with 0 additions and 11856 deletions
-12
View File
@@ -1,12 +0,0 @@
/**
* Compares the content of two arrays-like objects for equality.
*
* Equality is defined as having equal length and element values, where element equality means `===` returning `true`.
*
* This allows you to compare the content of a Buffer, Uint8Array or number[], ignoring the specific type.
* As a consequence, this returns different results than Jasmine's `toEqual`, which ensures elements have the same type.
*/
export declare function arrayContentEquals<T extends string | number | boolean>(
a: ArrayLike<T>,
b: ArrayLike<T>,
): boolean;
-6
View File
@@ -1,6 +0,0 @@
export declare function assert(condition: any, msg?: string): asserts condition;
export declare function assertDefined<T>(value: T | undefined, msg?: string): asserts value is T;
export declare function assertDefinedAndNotNull<T>(
value: T | undefined | null,
msg?: string,
): asserts value is T;
-4
View File
@@ -1,4 +0,0 @@
export { arrayContentEquals } from "./arrays";
export { assert, assertDefined, assertDefinedAndNotNull } from "./assert";
export { sleep } from "./sleep";
export { isNonNullObject, isUint8Array } from "./typechecks";
-1
View File
@@ -1 +0,0 @@
export declare function sleep(ms: number): Promise<void>;
-13
View File
@@ -1,13 +0,0 @@
/**
* Checks if data is a non-null object (i.e. matches the TypeScript object type).
*
* Note: this returns true for arrays, which are objects in JavaScript
* even though array and object are different types in JSON.
*
* @see https://www.typescriptlang.org/docs/handbook/basic-types.html#object
*/
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;