UNPKG

@alifd/next

Version:

A configurable component library for web built on React.

6 lines (5 loc) 563 B
import { type MomentFormatSpecification, type Moment, type MomentInput } from 'moment'; export declare function checkMomentObj(props: Record<string, unknown>, propName: string, componentName: string): Error | undefined; export declare function checkDateValue(props: Record<string, unknown>, propName: string, componentName: string): Error | undefined; export declare function formatDateValue(value: MomentInput | Moment, format: MomentFormatSpecification): Moment; export declare function formatDateValue(value: unknown, format: MomentFormatSpecification): null;