Open andersmar opened 3 months ago
Our own global types stopped working after installing the onesignal-vue3 package.
This is because it still uses the @vue/runtime-core in module declaration, whereas 'vue' should be used instead (vue docs).
@vue/runtime-core
'vue'
index.d.ts
declare module '@vue/runtime-core' { interface ComponentCustomProperties { $OneSignal: IOneSignalOneSignal; } }
index.ts
declare module '@vue/runtime-core' { export interface ComponentCustomProperties { $OneSignal: IOneSignalOneSignal; } }
Other
w11 pro 22H2
1. install package 2. define custom global type elsewhere 3. write the custom properties in a vue template
I expected both types to work.
The change described fixes the problem.
No response
Facing with same issue and the proposal for fixing issue is legit.
"This is because it still uses the @vue/runtime-core in module declaration, whereas 'vue' should be used instead (vue docs)."
What happened?
Our own global types stopped working after installing the onesignal-vue3 package.
This is because it still uses the
@vue/runtime-core
in module declaration, whereas'vue'
should be used instead (vue docs).index.d.ts
index.ts
What browsers are you seeing the problem on?
Other
What operating system are you running?
w11 pro 22H2
Steps to reproduce?
What did you expect to happen?
I expected both types to work.
The change described fixes the problem.
Relevant log output
No response