export interface ITyped { [key: string]: T; } export type TNamedStrings = ITyped; export type TObjectValue = ITyped; export type TSimpleValue = string | number | boolean | Date; export type TSimpleValueOrNull = TSimpleValue | null; export type TNamedValue = ITyped; export type TPromised = T | Promise; export type TPromiseFunc = () => Promise; export type TPromiseOrFunc = TPromised | TPromiseFunc; export declare const isMethod: (method: any) => method is Function; export declare const isArray: (arr: any) => arr is T[]; export declare const isNumber: (num: any) => num is number; export declare const isString: (value: any) => value is string; export declare const isPromise: (promise: any) => promise is Promise; export declare const safePromise: (items: TPromised) => Promise; export declare const safeCallPromise: (p: TPromiseOrFunc) => Promise; export declare const callOrData: (data: T, getData: TPromiseFunc) => T | Promise; export interface IPromiseAble { promise: Promise; } /** * Enum: Type names without element * @enum {string} * @readonly */ export declare enum BaseType { array = "array", boolean = "boolean", date = "date", function = "function", null = "null", number = "number", object = "object", string = "string", undefined = "undefined" } export declare const getBaseType: (value: any) => BaseType;