ItemConsulting / enonic-types

TypeScript types for Enonic XP
MIT License
8 stars 2 forks source link

Can we create wrappers for libraries, for better interop with JavaScript #6

Closed tajakobsen closed 4 years ago

tajakobsen commented 4 years ago

To be able to create typings we should defined modules that can be looked up in a "typings" folder. Since the paths used by enonic includes slashes (e.g "/lib/xp/content"), maybe we can create aliases without slashes.

tajakobsen commented 4 years ago

The JavaScript interop issue has been solved by using TypeScript to declare __non_webpack_require with the correct mappings to libraries.