differrer
Version:
> Utility to perform deep diff on any data types with smart order detection in arrays and different views implemented for convenience
15 lines (14 loc) • 618 B
TypeScript
export type CustomString = {
length: number;
rawValue: string;
pretty: string;
toString: () => string;
search: (patter: RegExp | string) => number;
padEnd: (length: number, padString?: string) => CustomString;
trimStart: () => CustomString;
representedValue: any;
type: Symbol;
};
export declare const customString: (rawValue: string, prettyArg?: string, representedValue?: any) => CustomString;
export declare const join: (customStringList: (string | CustomString)[], separator?: string) => CustomString;
export declare const isCustomString: (value: any) => value is CustomString;