Node-Red configuration
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { PluginFunc } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. declare module 'dayjs' {
  5. type WeekdayNames = [string, string, string, string, string, string, string];
  6. type MonthNames = [string, string, string, string, string, string, string, string, string, string, string, string];
  7. interface InstanceLocaleDataReturn {
  8. firstDayOfWeek(): number;
  9. weekdays(instance?: Dayjs): WeekdayNames;
  10. weekdaysShort(instance?: Dayjs): WeekdayNames;
  11. weekdaysMin(instance?: Dayjs): WeekdayNames;
  12. months(instance?: Dayjs): MonthNames;
  13. monthsShort(instance?: Dayjs): MonthNames;
  14. longDateFormat(format: string): string;
  15. meridiem(hour?: number, minute?: number, isLower?: boolean): string;
  16. ordinal(n: number): string
  17. }
  18. interface GlobalLocaleDataReturn {
  19. firstDayOfWeek(): number;
  20. weekdays(): WeekdayNames;
  21. weekdaysShort(): WeekdayNames;
  22. weekdaysMin(): WeekdayNames;
  23. months(): MonthNames;
  24. monthsShort(): MonthNames;
  25. longDateFormat(format: string): string;
  26. meridiem(hour?: number, minute?: number, isLower?: boolean): string;
  27. ordinal(n: number): string
  28. }
  29. interface Dayjs {
  30. localeData(): InstanceLocaleDataReturn;
  31. }
  32. export function weekdays(localOrder?: boolean): WeekdayNames;
  33. export function weekdaysShort(localOrder?: boolean): WeekdayNames;
  34. export function weekdaysMin(localOrder?: boolean): WeekdayNames;
  35. export function monthsShort(): MonthNames;
  36. export function months(): MonthNames;
  37. export function localeData(): GlobalLocaleDataReturn;
  38. }