danielroe / danielroe/nuxt-workers
Is it possible to scope worker functions?
Open
documentation
- Dominant language
- TypeScript
- Stars
- 447
- Forks
- 9
- Avg merge
- 21h 19m
- Merged PRs (30d)
- 23
Description
### 📚 Is your documentation request related to a problem?
Hey there! I need to use a generic worker which takes different setups according the stores they're used.
I would like to be able to write something like
````
defineStore('myStore', () => {
const worker = new Worker('thisworker')
})
````
multiple times.
As far as I understand documentation and sources, all methods will be exported to global scope, making them available from anywhere.
Is there a way to achieve what I need using this module or should I do it another way?
### 🔍 Where should you find it?
_No response_
### ℹ️ Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.