rrule-temporal 0.3.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -74,8 +74,8 @@ const prev = rule.previous(new Date("2025-05-01T00:00Z"));
74
74
  ## Converting back to text
75
75
 
76
76
  ```typescript
77
- rule.toString(); // DTSTART and RRULE lines
78
- rule.toText(); // human readable description
77
+ rule.toString(); // DTSTART and RRULE lines
78
+ toText(rule); // human readable description
79
79
  ```
80
80
 
81
81
  ## API
@@ -88,7 +88,7 @@ rule.toText(); // human readable description
88
88
  | `next(after?, inclusive?)` | Next occurrence after a given date. |
89
89
  | `previous(before?, inclusive?)` | Previous occurrence before a date. |
90
90
  | `toString()` | Convert the rule back into `DTSTART` and `RRULE` lines. |
91
- | `toText(formatter?)` | English description of the rule. |
91
+ | `toText(rule, locale?)` | English description of the rule. |
92
92
  | `options()` | Return the normalized options object. |
93
93
 
94
94
  ## Further examples