is-any-type
Version:
is-any-type simple functionality alternative to check data type references such as typeof and instanceof
28 lines (27 loc) • 1.27 kB
TypeScript
/// <reference types="node" />
export declare class Compare {
protected isArrayCheckCompare: string;
protected isBufferCheckCompare: string;
protected isPromiseCheckCompare: string;
protected isFunctionCheckCompare: string;
protected isObjectCheckCompare: string;
protected isNullCheckCompare: string;
protected isUndefinedCheckCompare: string;
protected isStringCheckCompare: string;
protected isNumberCheckCompare: string;
protected isBooleanCheckCompare: string;
protected isTypeData: string[];
protected isMatch: number;
protected isResult: string;
constructor();
isArrayCompare(data: any[], compare: any[]): boolean;
isBufferCompare(data: Buffer, compare: Buffer): boolean;
isPromiseCompare(data: Promise<any>, compare: Promise<any>): boolean;
isFunctionCompare(data: any, compare: any): boolean;
isObjectCompare(data: Record<string, any>, compare: Record<string, any>): boolean;
isNullCompare(data: null, compare: null): boolean;
isUndefinedCompare(data: undefined, compare: undefined): boolean;
isStringCompare(data: string, compare: string): boolean;
isNumberCompare(data: number, compare: number): boolean;
isBooleanCompare(data: boolean, compare: boolean): boolean;
}