mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 21:20:58 +00:00
7 lines
526 B
TypeScript
7 lines
526 B
TypeScript
import { Dayjs } from 'dayjs';
|
|
import { DateStringValue, DateTimeStringValue } from '../../types';
|
|
type ExactOptionalReturn<T, MainType> = T extends undefined ? undefined : T extends null ? null : MainType;
|
|
export declare function toDateString<T extends string | number | Date | Dayjs | undefined | null>(value: T): ExactOptionalReturn<T, DateStringValue>;
|
|
export declare function toDateTimeString<T extends string | number | Date | Dayjs | undefined | null>(value: T): ExactOptionalReturn<T, DateTimeStringValue>;
|
|
export {};
|