-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
Description
Describe the bug
When building application that uses hazelcast-client with Typescript compiler the following error is thrown:
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:7:5 - error TS2411: Property 'added' of type 'EntryEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
7 added?: EntryEventListener<K, V>;
~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:8:5 - error TS2411: Property 'removed' of type 'EntryEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
8 removed?: EntryEventListener<K, V>;
~~~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:9:5 - error TS2411: Property 'updated' of type 'EntryEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
9 updated?: EntryEventListener<K, V>;
~~~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:10:5 - error TS2411: Property 'merged' of type 'EntryEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
10 merged?: EntryEventListener<K, V>;
~~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:11:5 - error TS2411: Property 'evicted' of type 'EntryEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
11 evicted?: EntryEventListener<K, V>;
~~~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:12:5 - error TS2411: Property 'expired' of type 'EntryEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
12 expired?: EntryEventListener<K, V>;
~~~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:13:5 - error TS2411: Property 'loaded' of type 'EntryEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
13 loaded?: EntryEventListener<K, V>;
~~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:14:5 - error TS2411: Property 'mapEvicted' of type 'MapEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
14 mapEvicted?: MapEventListener<K, V>;
~~~~~~~~~~
node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:15:5 - error TS2411: Property 'mapCleared' of type 'MapEventListener<K, V> | undefined' is not assignable to 'string' index type 'EntryEventListener<K, V> | MapEventListener<K, V>'.
15 mapCleared?: MapEventListener<K, V>;
~~~~~~~~~~
Found 9 errors in the same file, starting at: node_modules/hazelcast-client/lib/proxy/EntryListener.d.ts:7
Expected behavior
Build should pass without errors.
Environment (please complete the following information):
-
Client version 5.1.0
-
Node.js version 14.19.3
-
Typescript version 4.7.3
-
Operating system: MacOS Monterey 12.13.1
Additional context
tsconfig.json
{
"compilerOptions": {
"allowJs": false,
"checkJs": false,
"incremental": true,
"composite": false,
"declaration": false,
"declarationMap": false,
"resolveJsonModule": true,
"allowUmdGlobalAccess": false,
"module": "ESNext",
"moduleResolution": "Node",
"target": "ESNext",
"lib": ["ESNext"],
"plugins": [
{
"transform": "@zoltu/typescript-transformer-append-js-extension/output/index.js",
"after": true
}
],
"allowSyntheticDefaultImports": true,
"removeComments": false,
"sourceMap": false,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"alwaysStrict": true,
"exactOptionalPropertyTypes": false,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"useUnknownInCatchVariables": false,
"disableSizeLimit": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
digvijayu
