Skip to content

代码中出现类型报错 #18

@dsgler

Description

@dsgler

selectedItems={
GroupGroup.map((group) =>
group.find(g => groups.some(gg => Group[gg] === g)) || ''
)
}

这里似乎有报错
Type '("" | GROUP)[]' is not assignable to type '[string, string]'.
Target requires 2 element(s) but source may have fewer.

selectItems={GroupGroup}

Type 'GROUP[][]' is not assignable to type '[string[], string[]]'.
Target requires 2 element(s) but source may have fewer.

columnTitles={$t('user.selector.groupGroup')}

Type 'string' is not assignable to type '[string, 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