OneSignal / onesignal-vue3

Vue 3 OneSignal Plugin: Make it easy to integrate OneSignal with your Vue App!
Other
19 stars 5 forks source link

[Bug]: Property 'externalId' does not exist on type 'IOneSignalUser'. #40

Open spaceark7 opened 5 months ago

spaceark7 commented 5 months ago

What happened?

Hi, i'm using the latest @onesignal/onesignal-vue3

in my project i want to access OneSignal.User.externalId as mentioned in the documentation . but i got types error Property 'externalId' does not exist on type 'IOneSignalUser'

image

then i check the d.ts inside the package, seems like it missing the property definition. would you immediately update the package?

image

What browsers are you seeing the problem on?

Firefox, Chrome (Chromium)

What operating system are you running?

macOS 12.7.5

Steps to reproduce?

1. install @onesignal/onesignal-vue3
2. init using the plugin in main.ts
3. access the property OneSignal.User.externalId
4. then it show the error **Property 'externalId' does not exist on type 'IOneSignalUser'**

What did you expect to happen?

I expected the type definition and show no error

Relevant log output

No response