Skip to content

Type is not assignable to type Tokenspan #12

@DevCraftsmanShubham

Description

@DevCraftsmanShubham

I am getting this type error when passing tag in value
value={[{start: 5, end: 6, tag: 'TOPIC', color: '#EEE'}]}
Type '{ start: number; end: number; tag: string; color: string; }' is not assignable to type 'TokenSpan'.
Object literal may only specify known properties, and 'tag' does not exist in type 'TokenSpan'.ts(2322)

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