Skip to content
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

web-features doesn't export types gracefully #1980

Open
SachaG opened this issue Oct 16, 2024 · 1 comment
Open

web-features doesn't export types gracefully #1980

SachaG opened this issue Oct 16, 2024 · 1 comment
Labels
bug Something isn't working package:web-features

Comments

@SachaG
Copy link

SachaG commented Oct 16, 2024

Is there a way to import the type definition for a Web Feature object?

@ddbeck ddbeck added bug Something isn't working package:web-features labels Oct 20, 2024
@ddbeck
Copy link
Collaborator

ddbeck commented Oct 20, 2024

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 ddbeck changed the title Web Features type definitions? web-features doesn't export types gracefully Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package:web-features
Projects
None yet
Development

No branches or pull requests

2 participants