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

Typings / typescript #39

Closed
Boris-Scharinger opened this issue Jul 24, 2020 · 0 comments
Closed

Typings / typescript #39

Boris-Scharinger opened this issue Jul 24, 2020 · 0 comments

Comments

@Boris-Scharinger
Copy link

Here there - I am trying to use it in a typescript environment and get an error on the "text" attribute (
<ClampLines
text="whatever"
....

I guess it's missing typings (and I am new to this stuff) - any chance to quick fix this? Thank you!! Cheers, Boris

"No overload matches this call.
Overload 1 of 2, '(props: Readonly): ClampLines', gave the following error.
Type 'EditableValue' is not assignable to type 'string'.
Overload 2 of 2, '(props: ClampLinesProps, context?: any): ClampLines', gave the following error.
Type 'EditableValue' is not assignable to type 'string'.ts(2769)
index.d.ts(4, 3): The expected type comes from property 'text' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<...>'
index.d.ts(4, 3): The expected type comes from property 'text' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<...>'

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

No branches or pull requests

1 participant