Skip to content

Combine asyncData return type with Vue component data type. #48

@andoshin11

Description

@andoshin11

What problem does this feature solve?

While we can access the returned type information of Vue native apis (i.e. data, computed, props, methods), the return type of asyncData function is totally lost from "this" object.

I'm not sure if it's even possible to combine these type information without changes on Vue core types, but I believe it is 'must-have' goal for us to provide safe, correct, efficient type definitions for users.

I've already spent some hours to solve this problem yet I haven't seen a daylight. Hope I can rely on your help.

This feature request is available on Nuxt community (#c8568)

Metadata

Metadata

Assignees

No one assigned

    Labels

    transferedIssue transfered from nuxt main repo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions