Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type is not assignable to type Tokenspan #12

Closed
DevCraftsmanShubham opened this issue Apr 1, 2020 · 0 comments · Fixed by #13
Closed

Type is not assignable to type Tokenspan #12

DevCraftsmanShubham opened this issue Apr 1, 2020 · 0 comments · Fixed by #13

Comments

@DevCraftsmanShubham
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant