model-viewer icon indicating copy to clipboard operation
model-viewer copied to clipboard

Add public API .d.ts file

Open elalish opened this issue 4 years ago • 3 comments

Fixes #1502

It does generate the single file, however it is giant and includes much more than our public API. I'll consider this blocked on https://github.com/Swatinem/rollup-plugin-dts/issues/133 unless a better way can be found.

elalish avatar Jan 15 '21 23:01 elalish

any news about that ?

michaelkochhugobosscom avatar Jul 27 '21 17:07 michaelkochhugobosscom

No; can you give some detail of your desired dev process and what you're hoping to do? Most of our users just put MV in as HTML; it'll be helpful to know what TS users are up to. Our unbundled library is also published on npm, so it should be possible to import the files from /lib instead of the bundle, since those all have .d.ts files associated. I'd still like to get a single d.ts file that only includes our public API, but I have yet to figure out a good way to do that.

elalish avatar Jul 27 '21 18:07 elalish

'[…] and what you're hoping to do' Well, for a start: not getting never ending errors and compilation failures because Typescript doesn't understand what I'm importing and using. Further: actually using Typescript with the API of the model-viewer (also without getting errors and failing to compile).

Ducki avatar Sep 17 '21 07:09 Ducki

Closing in favor of #3718

elalish avatar Aug 19 '22 23:08 elalish