Skip to content

fix: Replace module augmentation with helper functions#14

Merged
aklinker1 merged 2 commits intomainfrom
transport-helpers
Mar 14, 2026
Merged

fix: Replace module augmentation with helper functions#14
aklinker1 merged 2 commits intomainfrom
transport-helpers

Conversation

@aklinker1
Copy link
Copy Markdown
Owner

@aklinker1 aklinker1 commented Mar 14, 2026

JSR wasn't happy about the module augmentations, so I replaced it with helper functions and plugins.

Checking for slow types in the public API...
error[unsupported-ambient-module]: found an ambient module, which is a global augmentation, which are not unsupported
 --> /home/runner/work/zeta/zeta/src/transports/bun-transport.ts:5:16
  | 
5 | declare module "../types" {
  |                ^^^^^^^^^^
  = hint: remove the ambient module declaration

  info: ambient modules are not supported because they can modify the types of a module from outside of that module
  docs: https://jsr.io/go/slow-type-unsupported-ambient-module

error[unsupported-ambient-module]: found an ambient module, which is a global augmentation, which are not unsupported
 --> /home/runner/work/zeta/zeta/src/transports/deno-transport.ts:7:16
  | 
7 | declare module "../types" {
  |                ^^^^^^^^^^
  = hint: remove the ambient module declaration

  info: ambient modules are not supported because they can modify the types of a module from outside of that module
  docs: https://jsr.io/go/slow-type-unsupported-ambient-module

This package contains errors for slow types. Fixing these errors will:

  1. Significantly improve your package users' type checking performance.
  2. Improve the automatic documentation generation.
  3. Enable automatic .d.ts generation for Node.js.

Don't want to bother? You can choose to skip this step by
providing the --allow-slow-types flag.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 14, 2026

Deploy Preview for aklinker1-zeta-docs canceled.

Name Link
🔨 Latest commit 67bb8ab
🔍 Latest deploy log https://app.netlify.com/projects/aklinker1-zeta-docs/deploys/69b5cde524ffb600081352e2

@aklinker1 aklinker1 merged commit 2c0aea4 into main Mar 14, 2026
6 checks passed
@aklinker1 aklinker1 deleted the transport-helpers branch March 14, 2026 21:07
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.

1 participant