Skip to content

fix: various fixes #10

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

Merged
merged 14 commits into from
Jan 16, 2025
Merged

fix: various fixes #10

merged 14 commits into from
Jan 16, 2025

Conversation

penalosa
Copy link
Contributor

As part of trying to upgrade workers-sdk to use capnp-es over the seemingly abandoned capnp-ts I ran into a few issues with capnp-es. I've solved them in a way that works for the workers-sdk use-case, but that may not fully fit the goals of this library, so I imagine there'll be some back and forth on some of the changes.

@@ -51,4 +51,5 @@ export {
Uint8List,
VoidList,
Void,
type _Pointer,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, some generated .ts files included a _capnp property that referenced a _Pointer that TS couldn't find, causing:

error TS4026: Public static property '_capnp' of exported class has or is using name '_Pointer' from external module but cannot be named

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a test perhaps to avoid regression?

@anonrig
Copy link

anonrig commented Jan 15, 2025

@pi0 would you mind taking a look?

@pi0 pi0 changed the title Fixup some edge cases and upgrade TS fix: various fixes Jan 16, 2025
@pi0 pi0 merged commit 83cb360 into unjs:main Jan 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants