Skip to content

Missing UnwrapRef export #247

@spaceemotion

Description

@spaceemotion

I wanted to switch a couple fields that belong together from individual ref()'s to a single reactive(). Since I am using TypeScript, I tried to import the UnwrapRef type, but instead of using the main import, it redirected me to its full path instead:

I can import this:

import { Ref } from '@vue/composition-api';

but need to do this for UnwrapRef:

import { UnwrapRef } from '@vue/composition-api/dist/reactivity/index.d';

has this been an oversight, or is there a reason (like, "probably don't want to use reactive at all")?

Edit: I also noticed that Refs seems to be missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions