File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 2
2
* Returns a function that formats a given month number (from 0 = January to 11
3
3
* = December) according to the specified *locale* and *format*.
4
4
*
5
- * @param locale a [BCP 47 language tag][1]; defaults to U.S. English.
6
- * @param format a [month format][2]: either *2-digit*, *numeric*, *narrow*,
7
- * *short*, *long*; defaults to *short*.
8
- *
9
5
* [1]: https://tools.ietf.org/html/bcp47
10
6
* [2]: https://tc39.es/ecma402/#datetimeformat-objects
7
+ *
8
+ * @param locale - a [BCP 47 language tag][1]; defaults to U.S. English.
9
+ * @param format - a [month format][2]; defaults to *short*.
11
10
*/
12
11
export function formatMonth (
13
12
locale ?: string ,
@@ -18,12 +17,11 @@ export function formatMonth(
18
17
* Returns a function that formats a given week day number (from 0 = Sunday to 6
19
18
* = Saturday) according to the specified *locale* and *format*.
20
19
*
21
- * @param locale a [BCP 47 language tag][1]; defaults to U.S. English.
22
- * @param format a [weekday format][2]: either *narrow*, *short*, or *long*;
23
- * defaults to *short*.
24
- *
25
20
* [1]: https://tools.ietf.org/html/bcp47
26
21
* [2]: https://tc39.es/ecma402/#datetimeformat-objects
22
+ *
23
+ * @param locale a [BCP 47 language tag][1]; defaults to U.S. English.
24
+ * @param format a [weekday format][2]; defaults to *short*.
27
25
*/
28
26
export function formatWeekday ( locale ?: string , format ?: "long" | "short" | "narrow" ) : ( i : number ) => string ;
29
27
You can’t perform that action at this time.
0 commit comments