-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Custom ApolloClient Type to client.tsx #12
Conversation
GitHub actions yielded the following error. The command that failed is Here are the relevant error lines from the logs:
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
GitHub actions yielded the following error.
The command that failed is This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
Sweepai: Interface 'IApolloClient' incorrectly extends interface 'ApolloClient & { path: string; ssl: boolean; jwt_token: string; } is throwed because you do not pass types parameter |
Sweepai: pass type parameter to BaseApolloClient |
Sweeep: pass the type parameter to BaseApolloClient |
2 similar comments
Sweeep: pass the type parameter to BaseApolloClient |
Sweeep: pass the type parameter to BaseApolloClient |
@@ -37,7 +43,7 @@ export function generateHeaders(options: IApolloClientGeneratorOptions) { | |||
return headers; | |||
} | |||
|
|||
export interface IApolloClient<T> extends ApolloClient<T> { | |||
export interface IApolloClient<T> extends ApolloClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweep: pass the type parameter to BaseApolloClient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No changes made. Please add more details so I know what to change.
@@ -37,7 +43,7 @@ export function generateHeaders(options: IApolloClientGeneratorOptions) { | |||
return headers; | |||
} | |||
|
|||
export interface IApolloClient<T> extends ApolloClient<T> { | |||
export interface IApolloClient<T> extends ApolloClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No changes made. Please add more details so I know what to change.
@@ -37,7 +43,7 @@ export function generateHeaders(options: IApolloClientGeneratorOptions) { | |||
return headers; | |||
} | |||
|
|||
export interface IApolloClient<T> extends ApolloClient<T> { | |||
export interface IApolloClient<T> extends ApolloClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweep: use BaseApolloClient instead of ApolloClient and pass the type parameter to BaseApolloClient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No changes made. Please add more details so I know what to change.
@@ -37,7 +43,7 @@ export function generateHeaders(options: IApolloClientGeneratorOptions) { | |||
return headers; | |||
} | |||
|
|||
export interface IApolloClient<T> extends ApolloClient<T> { | |||
export interface IApolloClient<T> extends ApolloClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweep: use BaseApolloClient instead of ApolloClient and pass the type parameter to BaseApolloClient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No changes made. Please add more details so I know what to change.
GitHub actions yielded the following error. The command that failed is
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. |
🚀 Wrote Changes
Hi @deep-foundation-sweepai[bot], I decided to make the following changes:
|
GitHub actions yielded the following error. The command that failed is
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
GitHub actions yielded the following error. The command that failed is
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
Description
This PR introduces a custom ApolloClient type that extends the ApolloClient from the '@apollo/client' package and includes additional properties: 'path', 'ssl', and 'jwt_token'. This custom type is then used in the 'client.tsx' file instead of the original ApolloClient.
Summary of Changes
These changes ensure that the ApolloClient used in the application includes the additional properties and functionalities required by the user.
Fixes #8.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: