Skip to content

Commit b187a09

Browse files
shortcutsthegnuu
andauthoredSep 20, 2024··
fix(javascript): add override to name property (#3785)
Co-authored-by: Yannik Ache Eicher <ache@bbit.io>
1 parent e47df65 commit b187a09

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎clients/algoliasearch-client-javascript/packages/client-common/src/transporter/errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Response, StackFrame } from '../types';
22

33
export class AlgoliaError extends Error {
4-
name: string = 'AlgoliaError';
4+
override name: string = 'AlgoliaError';
55

66
constructor(message: string, name: string) {
77
super(message);

‎clients/algoliasearch-client-javascript/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"moduleResolution": "node",
1515
"noImplicitAny": true,
1616
"noImplicitThis": true,
17+
"noImplicitOverride": true,
1718
"noLib": false,
1819
"noUnusedLocals": true,
1920
"outDir": "dist",

0 commit comments

Comments
 (0)
Please sign in to comment.