Skip to content

Commit

Permalink
fix(javascript): add override to name property (#3785)
Browse files Browse the repository at this point in the history
Co-authored-by: Yannik Ache Eicher <ache@bbit.io>
  • Loading branch information
shortcuts and thegnuu authored Sep 20, 2024
1 parent e47df65 commit b187a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Response, StackFrame } from '../types';

export class AlgoliaError extends Error {
name: string = 'AlgoliaError';
override name: string = 'AlgoliaError';

constructor(message: string, name: string) {
super(message);
Expand Down
1 change: 1 addition & 0 deletions clients/algoliasearch-client-javascript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitThis": true,
"noImplicitOverride": true,
"noLib": false,
"noUnusedLocals": true,
"outDir": "dist",
Expand Down

0 comments on commit b187a09

Please sign in to comment.