Is it possible to scope worker functions?

オープン
#154 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
nuxt, typescript
領域
documentation

調査の方向性

issue ではファイル、テスト、エントリーポイントのいずれも指定されていません。まず、worker のエクスポートとスコープについて説明しているモジュールのドキュメントとソースを読み始めてください。個別に構成された worker がサポートされているかを文書化するか、サポートされていない場合は代替アプローチを明確に説明できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

documentation
📚 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

主要言語
TypeScript
スター
448
フォーク
10
平均マージ
10時間 28分
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danielroe/nuxt-workers のほかの issue

danielroe/nuxt-workers の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。