@osaedasia/oresume
Version:
A user-friendly library for generating complete Single Page Applications (SPAs)
18 lines (17 loc) • 902 B
TypeScript
/**
* Utility class providing methods for identifying and working with native JavaScript objects and types.
* Used within the observer pattern implementation to handle special cases for native objects.
*/
export declare class NativeHelper {
/**
* Collection of constructor functions for native JavaScript types.
* Used to identify instances of built-in JavaScript objects and data structures.
*/
static readonly NATIVE_TYPES: (ObjectConstructor | ArrayConstructor | DateConstructor | RegExpConstructor | FunctionConstructor | WeakMapConstructor | WeakSetConstructor | PromiseConstructor)[];
/**
* Checks if an object is an instance of any native JavaScript type.
* @param {unknown} obj The object to check.
* @returns {boolean} True if the object is an instance of a native type, false otherwise.
*/
static isNativeObject(obj: unknown): boolean;
}