nodejs-cryptomus
Version:
A comprehensive Node.js client for the Cryptomus API
13 lines (12 loc) • 401 B
TypeScript
/**
* Check if a value is defined and not null
*/
export declare function isDefined<T>(value: T | undefined | null): value is T;
/**
* Filter out undefined values from an object
*/
export declare function filterUndefined<T extends Record<string, any>>(obj: T): Partial<T>;
/**
* Convert a value to string if it's a number
*/
export declare function ensureString(value: string | number): string;