Skip to content

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

Open

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

Activity

  1. github-actions commented on Mar 20, 2023

    @github-actions
    Contributor

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

  2. lholmquist commented on Sep 6, 2024

    @lholmquist
    Contributor

    @cbrianball if your workaround works, then keep going with that

  3. github-actions commented on Oct 7, 2024

    @github-actions
    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

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