Microsoft/TypeScript

Missing Intl.Locale.prototype.getWeekInfo()

Open

#61.713 geöffnet am 16. Mai 2025

Auf GitHub ansehen
 (3 Kommentare) (12 Reaktionen) (0 zugewiesene Personen)TypeScript (6.726 Forks)batch import
BugDomain: lib.d.tsHelp Wanted

Repository-Metriken

Stars
 (48.455 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)

Beschreibung

⚙ Compilation target

esnext

⚙ Library

ESNext

Missing / Incorrect Definition

Intl.Locale.prototype.getWeekInfo() of the Intl Locale Info API is missing.

The method is available in multiple major browsers as well as in Node.js since v18.

Sample Code

const enUS = new Intl.Locale("en-US");
console.log(enUS.getWeekInfo());

Documentation Link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo

Contributor Guide