data-validator-js
Version:
Validation Methods for all types of Data
58 lines (57 loc) • 2.06 kB
TypeScript
export default class ConverterUtils {
/**
* ConvertToCapitals - Convert the value to UpperCase
* @param value String which we need to check
*/
static ConvertToCapitals(value: string): string;
/**
* ConvertToLowerCase - Convert the value to LowerCase
* @param value String which we need to check
*/
static ConvertToLowerCase(value: string): string;
/**
* ConvertToCamelCase - Convert the value to CamelCase
* @param value String which we need to check
*/
static ConvertToCamelCase(value: string): string;
/**
* ConvertToString - Convert the value to String
* @param value String which we need to check
*/
static ConvertToString(value: number | string | object | null | undefined): string;
/**
* ConvertToNumber - Convert the value to Number
* @param value String which we need to check
*/
static ConvertToNumber(value: string): number;
/**
* ConvertToTitleCase - Convert the value to TitleCase
* @param value String which we need to check
*/
static ConvertToTitleCase(value: string): string;
/**
* ConvertToLowerCamelCase - Convert the value to LowerCamelCase
* @param value String which we need to check
*/
static ConvertToLowerCamelCase(value: string): string;
/**
* ConvertToSnakeCase - Convert the value to SnakeCase
* @param value String which we need to check
*/
static ConvertToSnakeCase(value: string): string;
/**
* ConvertToRandomCase - Convert the value to RandomCase
* @param value String which we need to check
*/
static ConvertToRandomCase(value: string): string;
/**
* ConvertToToggleCase - Convert the value to ToggleCase
* @param value String which we need to check
*/
static ConvertToToggleCase(value: string): string;
/**
* ConvertToSentenceCase - Convert the value to SentenceCase
* @param value String which we need to check
*/
static ConvertToSentenceCase(value: string): string;
}