GameAnalytics / GA-SDK-JAVASCRIPT

Official repository for GameAnalytics JavaScript SDK
MIT License
19 stars 6 forks source link

Typescript definitions invalid #383

Open andrewmunro opened 1 year ago

andrewmunro commented 1 year ago

I'm trying to using this package, but the type definitions are not working correctly.

image

image

The definitions are loaded, but they seem to be invalid. All it can find under the gameanalytics module is some enums...

image

Is it valid to be declaring multiple modules with the same name in one definition file?

Using Typescript 5.04.

andrewmunro commented 1 year ago

Ah on further inspection, you appear to have duplicate enums. If you delete lines 133->178, the definitions work correctly:

image

image

andrewmunro commented 1 year ago

Ah but then the enums don't work 🤦

Benjythebee commented 3 months ago

Bump on this,

alekseyHunter commented 2 months ago

Bump on this.