virtua icon indicating copy to clipboard operation
virtua copied to clipboard

Generate .d.ts files for `unstable_core` module

Open aabccd021 opened this issue 10 months ago • 1 comments

Currently only index.d.ts and types.d.ts are output correctly and the rest of files export empty object.

I'm not familiar with rollup but let me know if I can help.

aabccd021 avatar Feb 04 '25 22:02 aabccd021

Probably we have to do:

  • Remove @ts-nocheck from lib/core/index.d.ts (and also check svelte adapter has no errors) https://github.com/inokawa/virtua/blob/5d5ef0700f779e3228d1eae62f101dfd3709d878/scripts/rollup-plugin-svelte-copy.mjs#L25
  • Remove @internal annotations from external APIs, because they are stripped by tsc on publish https://www.typescriptlang.org/tsconfig/#stripInternal

inokawa avatar Feb 05 '25 11:02 inokawa