-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Add types for window.performance.getEntriesByType #33866
Comments
Doh! Tried to open a PR for this, but looks like the work is over in https://github.com/Microsoft/TSJS-lib-generator. Should I move this issue to that repo? |
Waiting the feature. |
any updates on this? |
This is fixed since a few versions. Probably 4.4 or even earlier. |
Ok, missed that detail. Current state models spec: But yes could be more clear by adding overridingTypes: BTW, added type debug information to your playground link. |
Is someone aware of any available NPM package that provides the missing types as a workaround for now? |
Search Terms
getEntriesByType
PerformanceMark
PerformanceMeasure
PerformanceResourceTiming
Suggestion
Add types for the
getEntriesByType
APII found this old issue (Jul 5, 2018) and saw that experimental API's are not included in
lib.dom.d.ts
. The following API's don't appear to haveexperimental
warnings on them on the MDN docs. Hopefully this means these are no longer experimental and types can be added now?https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMark
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming
Use Cases
Getting specific strongly typed information for the entries when accessed via this API.
Examples
Checklist
My suggestion meets these guidelines (not sure about the first one):
The text was updated successfully, but these errors were encountered: