UNPKG

@jigoooo/shared-ui

Version:

A reusable React component library and design system with TypeScript support, built on Vite for seamless integration and optimized performance.

20 lines (19 loc) 1.22 kB
export declare function formatPhoneNumber(phoneNumber: string | number): string | number; export declare function thousandSeparator(number: string | number): string; export declare function formatDateString(date: string | number, formatter?: string): string; export declare function formatBusinessNumberWithRegex(input: string | number): string; export declare function formatKrDate(date: string | number): string; /** * 문자열로 받은 날짜에 대해 지정된 시간으로 변경하는 함수. * * @param date * @param targetHour 목표 시간 (0 ~ 23 사이의 값). * @param targetMinute 목표 분 (0 ~ 59 사이의 값). * @returns 변경된 날짜와 시간의 문자열 ('yyyyMMddHHmm' 형식). */ export declare function convertToSpecificTime(date: string | number, targetHour: number, targetMinute: number): string; export declare function applyMiddleEllipsis(text: string, maxLength: number, frontLength: number, backLength: number): string; export declare function formatAgriculturalBusinessCheckNumber(input: string): string; export declare function toPascalCase(str: string): string; export declare function deepCamelize<T>(input: any): T; export declare function deepSnakeize<T>(input: any): T;