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

<reference lib="webworker" /> results in bannedTripleSlashDirectives error during publish #836

Open
HuakunShen opened this issue Nov 17, 2024 · 0 comments

Comments

@HuakunShen
Copy link

I am getting typescript error with web worker APIs.

TS2339 [ERROR]: Property 'postMessage' does not exist on type 'Window & typeof globalThis'.
                self.postMessage(data)
                     ~~~~~~~~~~~

The solution I found that works is adding /// <reference lib="webworker" /> to the top of the file, but this will cause bannedTripleSlashDirectives error during jsr publish

@github-project-automation github-project-automation bot moved this to Needs Triage in JSR Nov 17, 2024
HuakunShen added a commit to kunkunsh/kkrpc that referenced this issue Nov 17, 2024
HuakunShen added a commit to kunkunsh/kkrpc that referenced this issue Nov 17, 2024
… worker, iframe) (#1)

* init pnpm workspace with turborepo

* feat: add kkrpc implementation for iframe, web worker, stdio (node, deno)

* refactor: rename web package to iframe-worker-demo

* refactor: move demo api to separate package

* feat: add deno web worker demo

* ci: add tests

* more test, docs update

* add version and license

* fix tests

* try to bypass jsr bannedTripleSlashDirectives error

jsr-io/jsr#836

* ci: fix CI

* ci: add playwright in CI

* ci: fix CI

* ci: disable bun stdio stress test, seems to have deadlock

* ci: rename job

* ci: disable windows CI temporarily which is causing test timeout

* ci: disable e2e test for now

* ci: disable playwright install in CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant