Remove types from VCS
This commit is contained in:
Vendored
-12
@@ -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;
|
||||
Vendored
-6
@@ -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;
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
export { arrayContentEquals } from "./arrays";
|
||||
export { assert, assertDefined, assertDefinedAndNotNull } from "./assert";
|
||||
export { sleep } from "./sleep";
|
||||
export { isNonNullObject, isUint8Array } from "./typechecks";
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
export declare function sleep(ms: number): Promise<void>;
|
||||
Vendored
-13
@@ -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;
|
||||
Reference in New Issue
Block a user