Skip to content

Definitions for Intl.RelativeTimeFormat missing #38034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dilyanpalauzov opened this issue Apr 17, 2020 · 3 comments
Closed

Definitions for Intl.RelativeTimeFormat missing #38034

dilyanpalauzov opened this issue Apr 17, 2020 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@dilyanpalauzov
Copy link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/formatToParts says:

const rtf1 = new Intl.RelativeTimeFormat('en', { numeric: 'auto' });

is valid, but TypeScript 3.8.3 does not know out-of-the box about RelativeTimeFormat.

@hediet
Copy link
Member

hediet commented Apr 18, 2020

See issue #29129 and the (closed?) pull request #36084.

@dilyanpalauzov
Copy link
Author

TypeScript does not know about Intl.RelativeTimeFormat.

#36084 was discarded, as there was no activity on it and #29129 was about an ECMAScript-Draft at the time.

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Apr 22, 2020
@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants