UNPKG

@storm-stack/types

Version:

⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

31 lines (30 loc) 1.11 kB
import { NativeClass } from "../utility-types/base"; /** Is ES6+ class */ export declare function isNativeClass(value?: any): value is NativeClass; /** * Check if the provided value's type is a conventional class * * @remarks * Is Conventional Class * Looks for function with capital first letter MyClass * First letter is the 9th character * If changed, isClass must also be updated * * @param value - The value to type check * @returns An indicator specifying if the value provided is a conventional class */ export declare function isConventionalClass(value?: any): value is Function; /** * Check if the provided value's type is `Object` * * @param value - The value to type check * @returns An indicator specifying if the value provided is of type `Object` */ export declare function isClass(value?: any): value is Function | NativeClass; /** * Check if the provided value's type is `Object` * * @param value - The value to type check * @returns An indicator specifying if the value provided is of type `Object` */ export declare const isObject: (value: unknown) => value is object;