Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 614B

123456789101112131415161718192021222324252627
  1. import { PluginFunc, OpUnitType, ConfigType } from 'dayjs/esm'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. type ISOUnitType = OpUnitType | 'isoWeek';
  5. declare module 'dayjs/esm' {
  6. interface Dayjs {
  7. isoWeekYear(): number
  8. isoWeek(): number
  9. isoWeek(value: number): Dayjs
  10. isoWeekday(): number
  11. isoWeekday(value: number): Dayjs
  12. startOf(unit: ISOUnitType): Dayjs
  13. endOf(unit: ISOUnitType): Dayjs
  14. isSame(date: ConfigType, unit?: ISOUnitType): boolean
  15. isBefore(date: ConfigType, unit?: ISOUnitType): boolean
  16. isAfter(date: ConfigType, unit?: ISOUnitType): boolean
  17. }
  18. }