<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Using SAP hana-client promises module with TypeScript in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaa-p/14161880#M4920950</link>
    <description>Thanks a lot, Ian!</description>
    <pubDate>Thu, 24 Jul 2025 18:44:15 GMT</pubDate>
    <dc:creator>RafaelLawisch</dc:creator>
    <dc:date>2025-07-24T18:44:15Z</dc:date>
    <item>
      <title>Using SAP hana-client promises module with TypeScript</title>
      <link>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaq-p/14160657</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've been using&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1862993"&gt;@Pa_Vi&lt;/a&gt;/hana-client Promises module for many years. A new project is being written on TypeScript, and importing "@sap/hana-client/extension/Promise.js" leads to message "Could not find a declaration file for module '@sap/hana-client/extension/Promise.js'. '(...)/node_modules/@sap/hana-client/extension/Promise.js' implicitly has an 'any' type.&lt;BR /&gt;If the '@sap/hana-client' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@sap/hana-client/extension/Promise.js';". This makes type inferrence impossible on the downstream, so we need to manually type each variable/function declaration to not be of type any.&lt;BR /&gt;As &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1862993"&gt;@Pa_Vi&lt;/a&gt;/hana-client has a .d.ts file, I would expect the Promises module to be typed, but then it would probably be imported from the root of the module (as usual with any other lib), instead of being imported directly from the specific .js file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;With that context, I have 2 questions:&lt;BR /&gt;1) How/where can I raise an issue to the appropriate SAP team to have this correctly typed (and, even better, importable from the root)?&lt;BR /&gt;2) Is there a way we can "type the Promises module ourselves" (via type coercion from the types made available by &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1862993"&gt;@Pa_Vi&lt;/a&gt;/hana-client or something in that sense), so that types can be inferred as expected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Lawisch&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 17:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaq-p/14160657</guid>
      <dc:creator>RafaelLawisch</dc:creator>
      <dc:date>2025-07-23T17:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP hana-client promises module with TypeScript</title>
      <link>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaa-p/14160666#M4920817</link>
      <description>We had the same issue in the past, I believe we ended up creating a new declaration (.d.ts) on our codebase. I'd be interested to know if there are any alternatives, I'm subscribing to this question as well.</description>
      <pubDate>Wed, 23 Jul 2025 17:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaa-p/14160666#M4920817</guid>
      <dc:creator>Rferrari</dc:creator>
      <dc:date>2025-07-23T17:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP hana-client promises module with TypeScript</title>
      <link>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaa-p/14161522#M4920913</link>
      <description>&lt;P&gt;Hi Lawisch,&lt;/P&gt;&lt;P&gt;I'm on the team responsible for the&amp;nbsp;hana-client Node.js driver and adding the type declarations for Promise.js is currently on our backlog. Unfortunately I can't commit to a specific date when this will be available, but I'll look into raising the priority on our end.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 13:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaa-p/14161522#M4920913</guid>
      <dc:creator>IanMcCurdy</dc:creator>
      <dc:date>2025-07-24T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP hana-client promises module with TypeScript</title>
      <link>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaa-p/14161880#M4920950</link>
      <description>Thanks a lot, Ian!</description>
      <pubDate>Thu, 24 Jul 2025 18:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-sap-hana-client-promises-module-with-typescript/qaa-p/14161880#M4920950</guid>
      <dc:creator>RafaelLawisch</dc:creator>
      <dc:date>2025-07-24T18:44:15Z</dc:date>
    </item>
  </channel>
</rss>

