@tangential/core
Version:
Core types and support code for Tangential
15 lines (14 loc) • 519 B
TypeScript
export declare class StringUtil {
static _baseTen: boolean[];
static firstUniqueByCounterSuffix(value: string, values: string[], separatorChar?: string): string;
/**
* Split a string that ends with a number into its corresponding parts. Useful for name collisions, e.g.
* FooValue, FooValue-1, FooValue-2
* @param value
*/
static withoutNumericSuffix(value: string): {
text: string;
suffix?: number;
};
static incrementCounterSuffix(value: string): string;
}