josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
816 stars 108 forks source link

No types when importing from standalone.js #386

Closed iamEAP closed 5 months ago

iamEAP commented 5 months ago

When upgrading from v0.19.0 to v0.20.0+, if I choose to use the fully bundled version (via import { JSONEditor } from 'vanilla-jsoneditor/standalone.js') in my typescript code, I get a Could not find a declaration file for module 'vanilla-jsoneditor/standalone.js' error.

Would it be possible to duplicate or ship typescript definitions for the standalone version as well?

josdejong commented 5 months ago

Thanks for reporting. I'll add a standalone.d.ts, I guess the index.d.ts is not enough.

josdejong commented 5 months ago

Should be fixed now in v0.21.2.