svelte-ux
Version:
- Increment version in `package.json` and commit as `Version bump to x.y.z` - `npm run publish`
10 lines (9 loc) • 378 B
TypeScript
/**
* Check if str only contians upper case letters
*/
export declare function isUpperCase(str: string): boolean;
export declare function uniqueId(prefix?: string): string;
/**
* Truncate text with option to keep a number of characters on end. Inserts ellipsis between parts
*/
export declare function truncate(text: string, totalChars: number, endChars?: number): string;