UNPKG

@thisisagile/easy-test

Version:

Straightforward library for testing microservices built with @thisisagile/easy

13 lines (12 loc) 828 B
import { ArrayLike } from './Types'; export declare const isDefined: <T = unknown>(o?: T) => boolean; export declare const isNumber: (o?: unknown) => o is number; export declare const isFunction: (o?: unknown) => o is (...params: unknown[]) => unknown; export declare const isA: <T>(t?: unknown, ...properties: (keyof T)[]) => t is T; export declare const isAn: <T>(t?: unknown, ...properties: (keyof T)[]) => t is T; export declare const isArray: <T = any>(o?: unknown) => o is Array<T>; export declare const isObject: (o?: unknown) => o is Record<string, unknown>; export declare const asJson: (a?: unknown) => any; export declare const asString: (a?: unknown) => string; export declare const asNumber: (num: unknown, alt?: number | (() => number)) => number; export declare const toArray: <T>(...items: ArrayLike<T>) => T[];