title: How to use an object from another TS file (knockout.js)
body: <p>I need to use an object from another TS file, for example I have a API response ine one.ts and I need to use that in two.ts</p>
  
  <p>i tried exporting and importing elements but to no avail</p>
  
  <p>this snippet is in my one.ts</p>
  
  <pre><code>getDealStatusInfo(dealid) {
              var statusRes
              DealApiControllers.GetDealStatus(dealid,
                  (response) =&gt; {
                      statusRes = response;
                      console.log(statusRes)
                  },
                  (error) =&gt; {
                      console.error(error);
                  });
  
          } 
  </code></pre>
  
  <p>I need to use the statusRes object in two.ts</p>