You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, this is a bit of a known issue. Exporting types are a little broken (though there is a types file).
They were originally added to the package in #540, but #1542 noted that they're somewhat awkward to work with. You can see that (abandoned) PR for a workaround.
We ought to properly fix this though, so it's possible to do something more natural like import type { … } from "web-features".
ddbeck
changed the title
Web Features type definitions?web-features doesn't export types gracefully
Oct 20, 2024
Is there a way to import the type definition for a Web Feature object?
The text was updated successfully, but these errors were encountered: