UNPKG

limu

Version:

A fast js lib of immutable data, based on shallow copy on read and mark modified on write mechanism

22 lines (21 loc) 1.21 kB
import type { AnyObject, DataType, Fn, ObjectLike, Primitive } from '../inner-types'; export declare const toString: () => string; export declare function has(obj: any, key: any): boolean; export declare function deepDrill<T extends ObjectLike>(obj: T, parentObj: any, key: any, subObjCb: (obj: any, parentObj: any, key: any) => void): void; export declare function getValStrDesc(val: any): string; export declare function noop(...args: any[]): any[]; export declare function isObject(val: any): val is AnyObject; export declare function isMap(val: any): val is Map<any, any>; export declare function isSet(val: any): val is Set<any>; export declare function isFn(val: any): val is Fn; export declare function getDataType(dataNode: any): DataType; export declare function isPrimitive(val: any): val is Primitive; export declare function isPromiseFn(obj: any): boolean; export declare function isPromiseResult(result: any): boolean; export declare function canBeNum(val: any): boolean; export declare function isSymbol(maySymbol: any): maySymbol is symbol; /** * 是否已被 markRaw 标记 */ export declare function isMardedRaw(val: any): boolean; export declare function injectMetaProto(rawObj: any): any;