erest
Version:
Easy to build api server depend on @leizm/web and express.
8 lines (7 loc) • 492 B
TypeScript
export declare function trimSpaces(text: string): string;
export declare function stringToString(str: string | undefined, defaultStr?: string): string;
export declare function stringOrEmpty(str: string | undefined, comm?: boolean): string;
export declare function itemTF(obj: unknown): "是" | "否";
export declare function itemTFEmoji(obj: unknown): "✅" | "❌";
export declare function tableHeader(titles: string[]): string;
export declare function fieldString(field: string[]): string;