UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

24 lines (21 loc) 954 B
/** * DevExtreme (localization/date.d.ts) * Version: 21.2.4 * Build date: Mon Dec 06 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { Format as LocalizationFormat } from '../localization'; type Format = 'abbreviated' | 'short' | 'narrow'; interface DateLocalization { firstDayOfWeekIndex(): number; format(date?: Date, format?: LocalizationFormat): string | Date | undefined; getDayNames(format?: Format): string[]; getMonthNames(format?: Format): string[]; } /** * @deprecated Attention! This type is for internal purposes only. If you used it previously, please describe your scenario in the following GitHub Issue, and we will suggest a public alternative: {@link https://github.com/DevExpress/DevExtreme/issues/17885|Internal Types}. */ declare const dateLocalization: DateLocalization; export default dateLocalization;