Features folder

This commit is contained in:
Jake Archibald
2020-09-18 16:28:56 +01:00
parent f92e3c2194
commit 7540a15f8d
31 changed files with 200 additions and 32 deletions

View File

@@ -11,10 +11,10 @@
* limitations under the License.
*/
import { wrap } from 'comlink';
import workerURL from 'omt:image-worker';
import workerURL from 'omt:features/worker';
import imgURL from 'url:./tmp.png';
import type { ProcessorWorkerApi } from 'image-worker/index';
import type { ProcessorWorkerApi } from 'features/worker';
const worker = new Worker(workerURL);
const api = wrap<ProcessorWorkerApi>(worker);