@helpscout/cyan
Version:
Cypress-like Testing for React + JSDOM
12 lines (11 loc) • 745 B
TypeScript
export declare function isDefined<T>(value: T | undefined | null): value is T;
export declare function typeOf<T>(value: unknown, type: string): value is T;
export declare function isArray<T>(value: unknown): value is Array<T>;
export declare function isFunction<T>(value: unknown): value is Function;
export declare function isString<T>(value: unknown): value is string;
export declare function isObject<T>(value: unknown): value is any;
export declare const isHTMLCollection: (obj: unknown) => boolean;
export declare const isNodeList: (obj: unknown) => boolean;
export declare const isNode: (obj: unknown) => boolean;
export declare const isElement: (obj: unknown) => boolean;
export declare const isNodeCollection: (obj: unknown) => boolean;