Skip to content

fix: make UserConfig interface instead of type#989

Merged
mrlubos merged 1 commit intohey-api:mainfrom
jacobinu:fix/config-type-error
Aug 28, 2024
Merged

fix: make UserConfig interface instead of type#989
mrlubos merged 1 commit intohey-api:mainfrom
jacobinu:fix/config-type-error

Conversation

@jacobinu
Copy link

Fixes #661

Similar problems with exporting a type alias:

Seems like this is intentional, explanation can be found here: privatenumber/cleye#11 (comment)

Should we want createClient and defineConfig to take an array we can just make the parameter config type UserConfig | ReadonlyArray<UserConfig>.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Aug 28, 2024

🦋 Changeset detected

Latest commit: bc78a42

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hey-api/openapi-ts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2024 5:09am

@codecov
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.15%. Comparing base (df9c928) to head (bc78a42).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #989   +/-   ##
=======================================
  Coverage   76.15%   76.15%           
=======================================
  Files          89       89           
  Lines       10953    10953           
  Branches     1111     1111           
=======================================
  Hits         8341     8341           
  Misses       2605     2605           
  Partials        7        7           
Flag Coverage Δ
unittests 76.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 28, 2024

commit: bc78a42

pnpm add https://pkg.pr.new/@hey-api/client-axios@989
pnpm add https://pkg.pr.new/@hey-api/client-fetch@989
pnpm add https://pkg.pr.new/@hey-api/openapi-ts@989

Open in Stackblitz

@mrlubos mrlubos merged commit e7fe5bd into hey-api:main Aug 28, 2024
@github-actions github-actions bot mentioned this pull request Aug 27, 2024
@jacobinu jacobinu deleted the fix/config-type-error branch August 29, 2024 17:17
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.

Default export of the module has or is using private name 'ClientConfig'.

3 participants