danielroe / danielroe/nuxt-workers

Is it possible to scope worker functions?

Open
#154 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.