Zizzamia / perfume.js

Web performance library for measuring all performance vitals metrics
https://zizzamia.github.io/perfume/
MIT License
3.12k stars 109 forks source link

feat: improve IPerfumeData types and usage #267

Open peterpeterparker opened 1 month ago

peterpeterparker commented 1 month ago

Motivation

I noticed that the IPerfumeData type was incomplete. There was some usage of any, and the type did not declare all possible properties.

This PR aims to improve this to ease the usage of the library.

Changes

Tests

One test is failing, similar to when I ran the test suite on the main branch. Therefore, I assume that the tests are currently broken, and providing the exact same results validates the refactoring.

I did not provide an additional test since the PR introduces no new functional features.