UNPKG

decova-dotnet

Version:

This package provides fundumentals that a .net developer may miss while working with Typescript, whether they are missing functinalities or funcionalities provided in a non-elegant design in javascript. Bad naming, bad design of optional parameters, non-c

23 lines 1.04 kB
interface String { xPadRight(totalWidth: number, paddingChar: string): string; xPadLeft(totalWidth: number, paddingChar: string): string; xSubstring(startIndex: number, length?: number): string; xRemove(startIndex: number, length: number): string; xContains(substr: string): boolean; xInsert(index: number, value: string): string; xToString(): string; xIsEmpty(): boolean; xIsWhiteSpace(): boolean; xStartsWith(str: string): boolean; xEndsWith(str: string): boolean; xIndexOf(subStr: string, startSearchFromIndex?: number): number; xLastIndexOf(subStr: string, startSearchFromIndex?: number): number; xReplaceOnce(toReplace: string, replacement: string): string; xReplaceAll(toReplace: string, replacement: string): string; } interface StringConstructor { xJoin(separator: string, parts: string[] | string): string; xIsNullOrWhiteSpace(value: string): boolean; xIsNullOrEmpty(value: string): boolean; } //# sourceMappingURL=String.types.d.ts.map