Skip to content

The type of "ref(computed)" does not match the expected value. #13781

@wl-007

Description

@wl-007

Version

3.5.18

Reproduction link

play.vuejs.org/

Steps to reproduce

const myTile = ref("start");

type BookInfo = {
	name: string;
	title: ComputedRef<string>;
}
const items: Ref<BookInfo[]> = ref<BookInfo[]>(
  [
    {
      name: "bookDay",
      title: computed(() => {
        return myTile.value;
      }),
    }
  ]);

What is expected?

The "title" type is ComputedRef

What is actually happening?

The "title" type is string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions