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

No .d.ts files available for browser bundle #531

Open
cbrianball opened this issue Feb 17, 2023 · 1 comment
Open

No .d.ts files available for browser bundle #531

cbrianball opened this issue Feb 17, 2023 · 1 comment

Comments

@cbrianball
Copy link

cbrianball commented Feb 17, 2023

Describe the Bug
Based on the websockets example, it appears that browsers should use the cloudevents bundle (i.e. import { CloudEvent } from "cloudevents/bundles/cloudevents";)

If that's true, there are no .d.ts files for that file -- TypeScript complains about not having any typings available for the module.

Additional context
I'm working around the issue right now by declare my own .d.ts file in my project that looks like this:

declare module "cloudevents/bundles/cloudevents" {
  export { CloudEvent } from "cloudevents";
}
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant