Skip to content

BTable PrimaryKey prop generic aware #2940

@VividLemon

Description

@VividLemon

Clear and concise description of the problem

// primaryKey?: Item extends object ? keyof Item | ((item: Item) => unknown) : string
using this, we could provide intelliense for the user

In my WIP version, it's not quite built like that because of a bug vuejs/language-tools#5791

Suggested solution

Wait for vuejs/language-tools#5791

Alternative

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions