Export types like TaskInstance
djmattyg007 opened this issue · comments
Matthew Gamble commented
This will provide more flexibility when typing things.
Martin Malinda commented
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";
Matthew Gamble commented
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).
Martin Malinda commented