title: KotlinJS + Typescript: Atomicfu TraceBase reference not found in d.ts file
body: <p>With either <code>coroutine</code> or <code>ktor</code> dependency, when <code>KotlinJS</code> npm library is published, in the resulting generated typescript <code>d.ts</code> file there are <code>atomicfu</code> references</p>
  <pre><code>export namespace kotlinx.atomicfu {
      function atomic$ref$&lt;T&gt;(initial: T, trace: kotlinx.atomicfu.TraceBase): kotlinx.atomicfu.AtomicRef&lt;T&gt;;
      function atomic$boolean$(initial: boolean, trace: kotlinx.atomicfu.TraceBase): kotlinx.atomicfu.AtomicBoolean;
      function atomic$int$(initial: number, trace: kotlinx.atomicfu.TraceBase): kotlinx.atomicfu.AtomicInt;
      function atomic$long$(initial: kotlin.Long, trace: kotlinx.atomicfu.TraceBase): kotlinx.atomicfu.AtomicLong;
  }
  </code></pre>
  <p>but reference for <code>TraceBase</code> is missing from the file and when compiling a <code>Typescript</code> app that depends on above <code>kotlinJS</code> library, it complains about missing <code>TraceBase</code>.</p>
  <p>The only way to move forward is to add <code>skipLibCheck = true</code> in the <code>tsconfig</code> file. That's not an ideal solution for user of the library.</p>
  <p>Is there a way to solve this issue?</p>