UNPKG

@alexkeating/common-utilities

Version:

Our **Common Utilities** package is a set of helper tools and utilities that are used throughout our libraries and apps. This includes things like our constants, types that are commonly shared across packages, and various utilities and helper functions.

7 lines (6 loc) 382 B
import { Noun } from '../types'; export declare const truncateAddress: (addr: string) => string; export declare const charLimit: (str: string | undefined, limit: number) => string | undefined; export declare const handlePluralNoun: (noun: Noun, count: number) => string; export declare const fromWei: (amt: string) => string; export declare const isJSON: (obj: unknown) => boolean;