Microsoft/TypeScript

Missing Intl.Locale.prototype.getWeekInfo()

Ouverte

#61 713 ouverte le 16 mai 2025

 (3 commentaires) (12 réactions) (0 personne assignée)TypeScript (13 395 forks)batch import
BugDomain: lib.d.tsHelp Wanted

Métriques du dépôt

Stars
 (108 860 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

⚙ 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

Guide contributeur