@bitbybit-dev/base
Version:
Bit By Bit Developers Base CAD Library to Program Geometry
84 lines (83 loc) • 1.83 kB
TypeScript
export declare namespace Text {
class TextDto {
constructor(text?: string);
/**
* The text
* @default Hello World
*/
text: string;
}
class TextSplitDto {
constructor(text?: string, separator?: string);
/**
* Text to split
* @default a,b,c
*/
text: string;
/**
* Text to split by
* @default ,
*/
separator: string;
}
class TextReplaceDto {
constructor(text?: string, search?: string, replaceWith?: string);
/**
* Text to replace
* @default a-c
*/
text: string;
/**
* Text to search for
* @default -
*/
search: string;
/**
* Text to replace found occurences
* @default b
*/
replaceWith: string;
}
class TextJoinDto {
constructor(list?: string[], separator?: string);
/**
* Text to join
* @default undefined
*/
list: string[];
/**
* Text to join by
* @default ,
*/
separator: string;
}
class ToStringDto<T> {
constructor(item?: T);
/**
* Item to stringify
* @default undefined
*/
item: T;
}
class ToStringEachDto<T> {
constructor(list?: T[]);
/**
* Item to stringify
* @default undefined
*/
list: T[];
}
class TextFormatDto {
constructor(text?: string, values?: string[]);
/**
* Text to format
* @default Hello {0}
*/
text: string;
/**
* Values to format
* @default ["World"]
*/
values: string[];
}
}