UNPKG

@resk/core

Version:

An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla

17 lines (16 loc) 571 B
import { IPrimitive } from "../types"; /** * Type guard to check if a value is a primitive type. * * @param {any} value - The value to check * @returns {boolean} True if the value is a primitive, false otherwise * * @example * isPrimitive("hello") // returns true * isPrimitive(42) // returns true * isPrimitive(true) // returns true * isPrimitive(null) // returns true * isPrimitive({}) // returns false * isPrimitive([]) // returns false */ export declare function isPrimitive(value: any): value is IPrimitive;