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

fix: add superagent types as prod dependency #347

Merged
merged 1 commit into from
Nov 19, 2024
Merged

fix: add superagent types as prod dependency #347

merged 1 commit into from
Nov 19, 2024

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Nov 15, 2024

We expose superagent's types in our own types, so this should be a production dependency. Otherwise, we will cause errors in the typescript builds of consumers (unless they skip lib check).

It does mean we add an unnecessary dependency for non-ts people, but there's not any simple way around that.

Fixes #346

We expose superagent's types in our own types, so this should be a
production dependency. Otherwise, we will cause errors in the typescript
builds of consumers (unless they skip lib check).

It does mean we add an unnecessary dependency for non-ts people, but
there's not any simple way around that.
@43081j 43081j requested a review from koddsson November 18, 2024 03:32
Copy link
Member

@koddsson koddsson left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍🏻

@43081j 43081j merged commit 28f4426 into main Nov 19, 2024
4 checks passed
@43081j 43081j deleted the sagentypes branch November 19, 2024 01:21
@jthemphill
Copy link

Thank you!

@jthemphill
Copy link

unless they skip lib check

I think we do skip lib check... the issue is that our own project doesn't typecheck because we're relying on types that we couldn't find in our dependency tree.

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.

TypeScript errors: Property 'post' does not exist on type 'Agent'
3 participants