ts-flex-query
Version:
Flexible and type-safe data queries
13 lines (12 loc) • 750 B
TypeScript
export declare const text: {
startsWith(v1: string | undefined, v2: string | undefined): boolean;
endsWith(v1: string | undefined, v2: string | undefined): boolean;
upperCase(v: string | undefined): string | undefined;
lowerCase(v: string | undefined): string | undefined;
concat(v1: string | undefined, v2: string | undefined): string;
contains(v1: string | undefined, v2: string | undefined): boolean;
indexOf(v1: string | undefined, v2: string | undefined): number;
getLength(v: string | undefined): number;
/** Converts the value to a string. No guarantuees are made on the string format. If the value cannot be converted to a string, undefined is returned. */
asString(v: unknown): string | undefined;
};