hazelcast-nodejs-client icon indicating copy to clipboard operation
hazelcast-nodejs-client copied to clipboard

About EntryListener.d.ts compilation error [API-1417]

Open srknzl opened this issue 3 years ago • 1 comments

There is known issue when "strictNullChecks" is true in typescript configuration. You will get an error in EntryListener.d.ts like the following:

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

This issue will be fixed in the following releases but to workaround the issue you can set "skipLibCheck" to true in your typescript configuration.

{
    "compilerOptions": {
      "strict": true,
      "skipLibCheck": true
    }
}
{
    "compilerOptions": {
      "strictNullChecks": true,
      "skipLibCheck": true
    }
}

Related issues:

  1. https://github.com/hazelcast/hazelcast-nodejs-client/issues/1316
  2. https://github.com/hazelcast/hazelcast-nodejs-client/issues/1286

srknzl avatar Jun 16 '22 09:06 srknzl

Internal Jira issue: API-1417

github-actions[bot] avatar Jun 27 '22 07:06 github-actions[bot]

Fixed by: https://github.com/hazelcast/hazelcast-nodejs-client/pull/1294 Closing.

yuce avatar Sep 27 '22 06:09 yuce

@yuce this is fixed but the issue still happens unreleased branches. maybe it is a good idea to keep the issue until every maintenance release is released

srknzl avatar Sep 28 '22 10:09 srknzl