merge-change
Version:
Advanced library for deep merging, patching, and immutable updates of data structures. Features declarative operations for specific merging behaviors, property management, custom type merging rules, and difference tracking. Supports complex data transform
8 lines (7 loc) • 328 B
TypeScript
import { HasMethod } from './types';
/**
* Checking for the presence of a method by its name with confirmation for TypeScript
* @param value Object to check
* @param method Method name
*/
export declare function hasMethod<M extends string | number | symbol>(value: HasMethod<M> | unknown, method: M): value is HasMethod<M>;