Closed djmattyg007 closed 3 years ago
They're exported but maybe not in root, I'll take a look.
So far this should work I think: (change vue3 to vue2 if needed):
import { Task } from "vue-concurrency/dist/vue3/src/Task";
import { TaskInstance } from "vue-concurrency/dist/vue3/src/TaskInstance";
I'll try to make this work:
import { Task, TaskInstance } from "vue-concurrency";
Importing from nested paths feels very clunky. It would definitely be easier if the relevant types were exported through the main entrypoint (something which typescript absolutely fully supports).
This should be fixed as part of 2.1.1
This will provide more flexibility when typing things.