Skip to content

Cannot augment user in UserSession #31

Closed
@kingyue737

Description

@kingyue737

The playground project tries to augment UserSession:
https://github.com/Atinux/nuxt-auth-utils/blob/e344c9880491346ab73165ac4439c129b13ec15d/playground/auth.d.ts#L3

But user is already declared here:

https://github.com/Atinux/nuxt-auth-utils/blob/e344c9880491346ab73165ac4439c129b13ec15d/src/runtime/types/session.ts#L2

🤔I don't think it is possible to augment an already declared field of an interface.

Type errors in playground:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions