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(javascript): add override to name property #3785

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

imported from algolia/algoliasearch-client-javascript#1552


When using this library with the newest angular version (v18.2.2), the following error will be thrown.

You can "fix" the issue by using noImplicitOverride: false in the tsconfig, but I guess it would make sense to fix it here...

✖ Compiling with Angular sources in Ivy partial compilation mode.
node_modules/@algolia/client-common/src/transporter/errors.ts:4:3 - error TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Error'.

4   name: string = 'AlgoliaError';

This PR adds the missing override property and should fix this issue.

@shortcuts shortcuts self-assigned this Sep 20, 2024
@shortcuts shortcuts requested a review from a team as a code owner September 20, 2024 08:57
@algolia-bot
Copy link
Collaborator

algolia-bot commented Sep 20, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 8eac81150786306df76d455db0849ba9562a9765
🍃 Generated commit b57cf53129a829bc48735473582d22847d16f02a
🌲 Generated branch generated/fix/javascript-override-class
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 1680

morganleroi
morganleroi previously approved these changes Sep 20, 2024
Copy link
Contributor

@morganleroi morganleroi left a comment

Choose a reason for hiding this comment

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

TIL

@shortcuts shortcuts merged commit b187a09 into main Sep 20, 2024
12 checks passed
@shortcuts shortcuts deleted the fix/javascript-override-class branch September 20, 2024 12:27
algolia-bot added a commit that referenced this pull request Sep 20, 2024
…kip ci]

Co-authored-by: Clément Vannicatte <[email protected]>
Co-authored-by: Yannik Ache Eicher <[email protected]>
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Sep 20, 2024
algolia/api-clients-automation#3785

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
Co-authored-by: Yannik Ache Eicher <[email protected]>
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.

5 participants