UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

12 lines (9 loc) • 657 B
import { createWorkerExecutor } from "./background/web.mjs"; import { createLatestComputation } from "./background/createLatestComputation.mjs"; import { useBackgroundComputation } from "./background/useBackgroundComputation.mjs"; function defineBackgroundComputation(_calculate, createWorker) { if (!createWorker) throw new Error("defineBackgroundComputation requires the One bundler transform and a statically imported calculation"); return Object.freeze({ createExecutor: () => createWorkerExecutor(createWorker) }); } export { createLatestComputation, defineBackgroundComputation, useBackgroundComputation }; //# sourceMappingURL=background.mjs.map