@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and
78 lines (77 loc) • 2.45 kB
TypeScript
/**
* Type Utilities - Centralized type checking functions
*
* Consolidates common type checking patterns to reduce code duplication
* and provide consistent type guards across the codebase.
*/
/**
* Type guard to check if a value is a non-null object
* Excludes arrays and null values
*
* @param value - Value to check
* @returns true if value is a non-null object (excluding arrays)
*/
export declare function isObject(value: unknown): value is Record<string, unknown>;
/**
* Type guard to check if a value is a non-null object (including arrays)
*
* @param value - Value to check
* @returns true if value is a non-null object (including arrays)
*/
export declare function isNonNullObject(value: unknown): value is object;
/**
* Type guard to check if a value is a plain object with string keys
*
* @param value - Value to check
* @returns true if value is a plain object with string keys
*/
export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
/**
* Type guard to check if a value is an array
*
* @param value - Value to check
* @returns true if value is an array
*/
export declare function isArray(value: unknown): value is unknown[];
/**
* Type guard to check if a value is a string
*
* @param value - Value to check
* @returns true if value is a string
*/
export declare function isString(value: unknown): value is string;
/**
* Type guard to check if a value is a number
*
* @param value - Value to check
* @returns true if value is a number and not NaN
*/
export declare function isNumber(value: unknown): value is number;
/**
* Type guard to check if a value is a boolean
*
* @param value - Value to check
* @returns true if value is a boolean
*/
export declare function isBoolean(value: unknown): value is boolean;
/**
* Type guard to check if a value is a function
*
* @param value - Value to check
* @returns true if value is a function
*/
export declare function isFunction(value: unknown): value is Function;
/**
* Type guard to check if a value is null or undefined
*
* @param value - Value to check
* @returns true if value is null or undefined
*/
export declare function isNullish(value: unknown): value is null | undefined;
/**
* Type guard to check if a value is defined (not undefined)
*
* @param value - Value to check
* @returns true if value is not undefined
*/
export declare function isDefined<T>(value: T | undefined): value is T;