@tanstack/db
Version:
A reactive client store for building super fast apps on sync
8 lines (7 loc) • 361 B
text/typescript
export declare function isPlainObject(value: unknown): value is Record<PropertyKey, unknown>;
/**
* Type guard to check if a value is promise-like (has a `.then` method)
* @param value - The value to check
* @returns True if the value is promise-like, false otherwise
*/
export declare function isPromiseLike(value: unknown): value is PromiseLike<unknown>;