@yoroi/common
Version:
The Common package of Yoroi SDK
23 lines (21 loc) • 707 B
Flow
/**
* Flowtype definitions for strings
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.21.0
*/
/**
* Returns a string representation of the given value, if possible.
* @param {string | string[] | void | null} value - The value to convert to a string.
* @returns {string} A string representation of the value, or undefined if not possible.
*/
declare export function asConcatenedString(
value: string | string[] | void | null
): string | void;
declare export function truncateString(x: {
value: string,
maxLength: number,
separator?: string,
...
}): string;
declare export function hexToAscii(hex: string): string;
declare export function asciiToHex(str: string): string;