Fix types when updating 7.1.3 #970
angelod1as
started this conversation in
General
Replies: 2 comments
-
@angelod1as hey, you can find the API for new there is no Yeah the docs can be better i know ... |
Beta Was this translation helpful? Give feedback.
0 replies
-
In this particular example, what would be the correct argument in generic ReactMaskProps? ReactMaskProps ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
We have created a component that uses
useIMask
but now, trying to update from 6.4.3 to 7.1.3, our types are broken.I tried fixing the types but can't find any documentation on it, nor decipher the source types.
What breaks is:
Is not available anymore. So I import from somewhere else, so far so good:
But now it errors:
Generic type 'ReactMaskProps' requires between 1 and 2 type arguments.
Also, theIMask
is not found anymore:Both break.
To Reproduce
See the code above.
Expected behaviour
The types should work or there should be docs describing what to do.
Environment:
Beta Was this translation helpful? Give feedback.
All reactions