chonky
Version:
A File Browser component for React
14 lines (10 loc) • 445 B
text/typescript
import { IntlConfig, IntlShape } from 'react-intl';
import { Nullable } from 'tsdef';
import { FileData } from './file.types';
export interface I18nConfig extends Partial<IntlConfig> {
formatters?: Partial<ChonkyFormatters>;
}
export interface ChonkyFormatters {
formatFileModDate: (intl: IntlShape, file: Nullable<FileData>) => Nullable<string>;
formatFileSize: (intl: IntlShape, file: Nullable<FileData>) => Nullable<string>;
}