The resource timing API have events like onresourcetimingbufferfull which gets fired when the limit of 150(by default) resources has been reached. https://www.w3.org/TR/resource-timing-1/#extensions-performance-interface
The Performance interface in lib.d.ts file https://github.com/Microsoft/TypeScript/blob/master/lib/lib.d.ts does not have onresourcetimingbufferfull event defined in it. Is there any way to achieve this?
Most certainly! You can simply augment the
Performance
interface in your own code:I couldn't find that the
resourcetimingbufferfull
event carried any special payload so it's easiest just to type it as a regular oldEvent
.