Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@cbrianball

Description

@cbrianball

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";
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions